Add Product Images via CSV in Magento

Add Product Images via CSV


This is something that most developers will be perfectly aware of, but I’m going to document it here for the benefit of those who are not aware. Importing products via spreadsheet saves a hell of a lot of time, but doing the images was always a slight grey area. Here are the steps to doing this which I can confirm works with Magento 1.5.0.1.

Step 1 – Check Directory Permissions

In order for this to work, check your folder permissions are set to 777 on the following directories:

/media
/media/import
/var/import

The reason is because the script requires all of these folder to be writeable to execute properly.

Step 2 – Upload Images

Image UploadThrough FTP upload all of your images to the media/import folder. I have seen people say that in some versions of Magento 1.5 the import folder should be different: (media/catalog/product and media/catalog/product/import), however I have tested it in the media/import folder on 1.5.0.1 and it works perfectly.

Step 3 – Link to Images in CSV

In your product spreadsheet you now need to link to the image filename in the columns image, small_image and thumbnail. All image names must be preceded with a forward slash “/”. For example, I am uploading an image for the 1989 Tim Burton classic ‘Batman’ starring Michael Keaton and Jack Nicholson. I would enter the image name as shown below:

CSV Images

I’ve also seen people report that they’ve had to add a suffix to the small image and thumbnails (such as /imagename_small.jpg), but in my experience this is unnecessary. Simply adding the images names as I have demonstrated above works just fine.

Step 4 – Import using Dataflow Profiles

Now you can import your CSV as usual using Magento Dataflow profiles. Upon doing this your product should be ‘image-ready’ when you view it on the frontend:

Batman

Uploading Additional Gallery Images

As far as I’m aware there isn’t currently a default method for bulk uploading additional gallery images. I’m certain that Magento will introduce this feature in the near future as it seems relatively easy to implement. In the meantime, Prattski’s blog has a nice extension for it: http://prattski.com/2009/10/09/magento-import-multiple-images-for-products-module/


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值