Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
Forum Replies Created
-
AuthorReplies
-
July 17, 2017 at 5:10 am in reply to: How can I add SEO Keyworsd to Product programmatically? #31856
Hello,
If you want to add keywords for the default localization you have to write something like this:PHP123$value = new LocalizedFallbackValue();$value->setText('keyword1, keyword2');$product->addMetaKeyword($value);You need loop only when you have more than one localization:
PHP1234567foreach ($productData['keywords'] as $localizationId => $keywords) {$value = new LocalizedFallbackValue();$value->setText($keywords);// get $localizationObject somehow$value->setLocalization($localizationObject);$product->addMetaKeyword($value);}Hello,
Images are generated in the web/media directory. You can check specific directory of an image by seeing source code of a page. I would say your web server has no write permissions to web/media or some subdirectory.Please, bring more details about what category, what exactly image is not showing (small/large) and where (frontend/backend)?
Best regards
WiktorHello,
functionality will be provided soon.Best regards
WiktorHello Jack,
when you add a new category you have to go to ‘Marketing’ -> ‘Web Catalogs’, edit ‘Default Web Catalog’ and click ‘Edit Content Tree’ button then add new node with category page.
More details you can find: https://oroinc.com/b2b-ecommerce/documentation/current/user-guide/marketing-web-catalogBest regards
WiktorHello Bosumflici,
Please, let me know on which datagrid you are getting this error and what exactly mass action are you executing.Best regards,
WiktorHello Simon,
This functionality, probably, will be added at following release. Now it’s possible to add it manually as a text filter.In order to add text filter manually you have to:
1. Add values to indexation in WebsiteSearchProductIndexerListener, for example:
PHP12345678// Oro/Bundle/ProductBundle/EventListener/WebsiteSearchProductIndexerListener.phppublic function onWebsiteSearchIndex(IndexEntityEvent $event){foreach ($products as $product) {// ...if ($product->getColor()) {$event->addField($product->getId(), 'color', $product->getColor()->getName());}2. Modify datagrids.yml:
YAML1234567# Oro/Bundle/ProductBundle/Resources/config/oro/datagrids.ymlfrontend-product-search-grid:columns:# ...color:type: stringdata_name: color3. Modify website_search.yml:
YAML12345678# Oro/Bundle/ProductBundle/Resources/config/oro/website_search.ymlOro\Bundle\ProductBundle\Entity\Product:alias: oro_product_WEBSITE_IDfields:# ...-name: colortype: textTo reindex values there is console command: https://github.com/orocommerce/orocommerce/blob/master/src/Oro/Bundle/WebsiteSearchBundle/Resources/doc/console_commands.md
Best regards
Hello Simon,
On production environment you should use Supervisord because it relaunch consumer every time when it dies. On development environment it’s convenient to use it. Also when you need more then one consumer you need Supervisord. You can find information about that here: https://www.orocrm.com/documentation/current/book/installation#activating-background-tasks and https://github.com/orocrm/platform/tree/master/src/Oro/Bundle/MessageQueueBundle#supervisordBest regards
Hi prganvani,
Could you provide logs of application? And let me know, please, how you add tasks and events.Best regards
-
AuthorReplies