0

We've been having an issue with importing images via CSV spreadsheet into Magento 2. I'm able to import product images into the Magento admin via the columns Base Image, Small Image, Thumbnail and Swatch - however it doesn't show on the product frontend. However, it shows just fine on the catalog pages. Screenshots attached. Product image imported into admin Product image does not show on frontend The thumbnail displays fine on catalog pages

I've tried the following commands:

php bin/magento indexer:reindex

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

php bin/magento cache:clean

php -f bin/magento setup:upgrade

But none of them fix the issue. The product main image works when manually added via the admin. What could be causing this? Any help is appreciated.

3
  • Also attempted the following command already, with no success: php bin/magento catalog:image:resize – user2947490 Oct 16 '20 at 11:58
  • php bin/magento catalog:images:resize try this command then run all command – Ranjeet Kumar Oct 16 '20 at 11:59
  • Did that again - still doesn't work. – user2947490 Oct 17 '20 at 1:16
0

The images were displaying correctly on an incognito window, so likely the fix was:

php bin/magento catalog:image:resize

followed by an image cache clear from the admin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.