Magento CSV import listing images

2019-09-05 16:43发布

问题:

I use a CSV file to import products to my magento store, everything goes quite well untill i open the listing-page.

Magento auto selects the "No image" to all the listing-options at Thumbnail, small image and base image. What am i doing wrong?

The image, small_image, thumbnail are all set with exampleimage.jpg (path is right).

回答1:

You should check 'store' column on you csv, it should be usually - 'default'



回答2:

if you create an array for the import add this lines at the end:

            'image'                   => 'img1.jpg',
            'small_image'             => 'img2.jpg',
            'thumbnail'               => 'img3.jpg'

this map the images to the specific image type. In your csv you add this 3 columns in addition:

,"image","small_image","thumbnail", ,"img1.jpg","img2.jpg","img2.jpg"

cheers



标签: php magento csv