Magento Mass使用MAGMI导入图像 - 不包括图像

时间:2014-03-16 21:11:16

标签: mysql magento magmi

感谢阅读。

我使用magmi导入超过30,000种带图像的产品。

问题在于图像是否已导入,但所有图像都被排除在外。

我可以使用任何sql查询并包含所有图像吗?

我使用了这个查询但只影响了一行

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)));
你能帮帮我吗?谢谢。

magento 1.8 CE

2 个答案:

答案 0 :(得分:9)

plugin documentation中所述,只需在要导入的图片名称前添加“+”符号。

检查“排除”的原因是基本图像的默认magento行为是为了避免在“额外”图像库中复制它们。

但是,某些扩展程序需要在额外图像列表中显示基本图像。

顺便说一下,我还建议使用latest git version of magmi,这是更新的,并有几个增强功能

答案 1 :(得分:1)

如果你想强制显示图像,那么另一种选择(除了未经修改的黑客Magento核心)就是破解Magmi导入

在Magmi 0.7.21

magmi /插件/额外/ itemprocessors / imageprocessor / imageitattributeemprocessor.php

第155行,在函数getExclude

将返回行更改为0 return 0;

这将使每个图像显示在产品页面上(更新或重新导入后)。

相关问题