Reputation: 7932
Our products were imported using Magmi and the swatch images set using the media_gallery field of the Magmi CSV file. After the import completes, the swatch images are seen correctly in the product catalog. When viewing the product in the public site of the site, the swatches are not show. When going back to see the product catalog, the swatch images have disappeared.
If we add the swatch images manually through the product catalog the swatch images remain as expected.
After the import is complete the product looks like this from the admin page:
Then going to the public view page we see this:
Going back to the product catalog page we see that the swatch images have been removed:
Example CSV:
sku,media_gallery
Configurable623,/variant/large/12288.jpg::Dog-swatch;/variant/large/12289.jpg::Monkey-swatch;/variant/large/12290.jpg::Owl-swatch;/variant/large/15355.jpg::Bee-swatch;/variant/large/12291.jpg::Ladybug-swatch
Refreshing or not refreshing Magento index has no affect either way. All caches are turned off.
Magmi image import settings are:
Upvotes: 1
Views: 1197
Reputation: 592
I Faced same issue I resolved it following @Ali sadikin solution here is it Images disappear after import thru Magmi
the truth is,images were not deleted,but only filename removed from database because the default catalog module remove duplicate image
so,the problem solving is below
override module "Mage_Catalog_Model_Resource_Product_Attribute_Backend_Media" into your own module step: in file media.php in
function loadGallery($product,$object){
//$this->_removeDuplicates($result); please comment this
}
Upvotes: 0
Reputation: 565
I have faced the same issue when I have imported the products through CSV. The images are showing in front-end but not showing in back-end and when I save the product, the images are gone.
I followed this link that helped me. Give it a try.
Thanks.
Upvotes: 0