Magento批量上传图片-图片被Exclude问题

Magento默认的在产品导入后,Magento对图片选项自动选择了excluded(排除)所有的图片,
从而使得前台不显示图片。解决办法如下:

进入文件 app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php
找到行:
$product->addImageToMediaGallery(Mage::getBaseDir(“media”) . DS . “import” . $file, $fields);

改为
$product->addImageToMediaGallery(Mage::getBaseDir(“media”) . DS . “import” The suit comes as Consumer Watchdog helped put a measure on the November ballot that would give the state’s health insurance commissioner greater authority to veto rate increases. . $file, $fields, false, false);

就是在 $fields 后添加了 false, false “