Importing Images.

Hi all,



Our company previously had a trial version of the CSC software and uploaded about 2000 products, with images, etc. We’ve just purchased the Premium version, and we’re trying to move those files into a new directory. So, for example, our first trial version was ‘htdocs/cscart’ and now we want to move them to ‘htdocs/cscart1’. We have successfully imported all of the data, but the images don’t seem to want to show up.



I’ve tried a few different solutions:

  1. Export from ‘cscart’ into ‘cscart1’
  2. Tried copying the ‘images’ folder from ‘cscart’ and pasting it into ‘cscart1/images’
  3. Copying the entire database over and pasting it over the new one



    The last option did work, however, it caused problems in the products. The categories wouldn’t show up on our page or in the search feature.



    Anybody else have any suggestions? Thanks!

Welcome to my world, another nightmare :frowning: here’s how I have done it, I would be amazed if the is not an easier way but the way cscart uses images goes well over my head. Even worse if you want to move to another cart :rolleyes:


  1. Move all your images to a folder on the new site eg. images/backup


  2. Export product images export from the old site.


  3. Then open that csv file as a spreadsheet and select the image column.


  4. Copy this text into a text editor and search and remove all the path leaving only the file names as a list. (you could do this is excel but I find its best this way)


  5. Now simply copy all those file names back over to the spreadsheet and import that csv file into the new site making sure the image path is set to images/backup.



    This way all you images will be picked up from the backup folder and cs-cart will do what it does with them.

[quote name=‘kickoff3pm’]Welcome to my world, another nightmare :frowning: here’s how I have done it, I would be amazed if the is not an easier way but the way cscart uses images goes well over my head. Even worse if you want to move to another cart :rolleyes:


  1. Move all your images to a folder on the new site eg. images/backup


  2. Export product images export from the old site.


  3. Then open that csv file as a spreadsheet and select the image column.


  4. Copy this text into a text editor and search and remove all the path leaving only the file names as a list. (you could do this is excel but I find its best this way)


  5. Now simply copy all those file names back over to the spreadsheet and import that csv file into the new site making sure the image path is set to images/backup.



    This way all you images will be picked up from the backup folder and cs-cart will do what it does with them.[/QUOTE]



    This worked, thanks so much!

?? If you have ssh access to your server

$ cd root_of_old_site

$ tar -c images | (cd root_of_new_site;tar -x)



Or simply archive the old site image directory and copy it to the new site and unarchive it.



If you are on different versions (especially going from 2.0 to 2.1) then you should upgrade the old site first. Then move the images directory.

Will this work @tony? I mean archiving images

We have images for products which are on 4.0.3 and will need to upload them on our new store on 4.1.3?