Magento Mass Import images with MAGMI - images excluded

三世轮回 提交于 2019-12-04 23:50:49

问题


thanks for reading.

I'm using magmi to import more than 30.000 products with images.

The problem is with images that they are imported but all of them are excluded.

Is there any sql query that I can use and get all images included?

I used this query but only one row effected

update `catalog_product_entity_media_gallery_value` set disabled=1 where `value_id` in (select `value_id` from `catalog_product_entity_media_gallery` where value in (select value from `catalog_product_entity_varchar` where `attribute_id`=(select `attribute_id` from `eav_attribute` where attribute_code='image' and `entity_type_id`=4)));

can you please help me? thank you.

magento 1.8 CE


回答1:


as said in plugin documentation , just put a "+" sign before the image name to import.

The reason "exclude" is checked is that default magento behaviour for base images is to avoid replicating them in the "extra" images gallery.

However, some extensions require to have base image displayed in the extra image list.

Btw, i would also advise using the latest git version of magmi , which is much more up to date and has several enhancements




回答2:


if you want to force images to be shown then an alternative (apart from the unadvised hacking Magento core) is to hack Magmi import

In Magmi 0.7.21

magmi/plugins/extra/itemprocessors/imageprocessor/imageitattributeemprocessor.php

line 155, in the function getExclude

change the return line to 0 return 0;

this will make every image show on product pages (after update or reimport of course).



来源:https://stackoverflow.com/questions/22443072/magento-mass-import-images-with-magmi-images-excluded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!