Image imports

I am having severe trouble getting images into cs cart, no matter what I do the image boxs are always empty. Product names and categories go in easy enough, but the images will not? Can anyone explain in simple terms how I go about doing this correctly? this is where my images are (3000 of them!)

/home/sites/my_site/public_html/images/detailed/

any tips would be greatly appreciated.

Thanks in advance

Paddy

DIZZYMOTHER,



I had a lot of images to import as well and I did the following:


  1. Put the images into the images/backup/ directory.
  2. Created a spreadsheet with Product Code, Pair Type (M for Main), and Detailed Image Path. I have CS-Cart automatically create the thumbnail.



    I then imported the spreadsheet and it added all of my product images to my products.



    Hope that helps,



    Adam

Great, I will give that a try!

Thanks!

mmm. still not working, whats confusing is this…



do I leave the detailed image with just the image code or add the path to where the image is on the server?



plus when you goto import then there is the image directory box, do I fill this in as well?



Its all a little confusing?



Paddy

[quote name=‘DIZZYMOTHER’]

do I leave the detailed image with just the image code or add the path to where the image is on the server?[/QUOTE]



Depends on where your images are? The default location is in the backup folder. If you have them somewhere else you can either:


  1. Put that location in the Image Directory Location. However, they must all be in the same folder. OR
  2. Put the path in the Excel spreadsheet.


[quote name=‘DIZZYMOTHER’]

plus when you goto import then there is the image directory box, do I fill this in as well?[/QUOTE]



You can leave that alone and if you have an image without a path it will automatically look in this directory for the image.



Let me know if that helps.



Adam

I have tried all those options now and still having no luck, now I know this sounds a bit of a strange one, but I’m using a Mac, and read a few things about people having problems uploading from a mac version of excel? Do you think that might be the problem?

I’ve even created the item manually, then exported the csv, reimported after deleting the catergorie/product/image etc and once reimported it still doesn’t appear?

All very odd? and frustrating to say the least…

Paddy

  1. Add your images to the backup folder
  2. Use the following fields in the CSV file Product code, Pair number = M (main), Detailed Image (eg. DSC23234.JPG)
  3. Ensure that the detailed image names and extensions (jpg, gif) share the same EXACT case as the uploaded images otherwise it will not work.
  4. Success

DIZZYMOTHER,



Make sure you are saving as a CSV file. Are you getting an error message when uploading?



Adam

I’m managing to get the products in now, but not the images… its very weird?

I am having exactly the same problem - the file seems to load ok but the images are not being linked to any products

I finally mangaged to do it, the link between the csv file and the image name, has to be exactly the same, so add all your products and then the seperate csv file and upload the images and it should work. I done something really daft and named the image file .gif, when I finally checked the images were .jpg’s hey presto all went in!

[quote name=‘DIZZYMOTHER’]I finally mangaged to do it, the link between the csv file and the image name, has to be exactly the same, so add all your products and then the seperate csv file and upload the images and it should work. I done something really daft and named the image file .gif, when I finally checked the images were .jpg’s hey presto all went in![/QUOTE]

unfortunately that does not solve my problem - my names were identical

This is the error I get when trying to import images… any ideas?





Warning: copy(/home/scootin1/public_html/maysportinggoods.com/store/home/scootin1/public_html/maysportinggoods.com/images/images_backup/product_images/Beretta 003.jpg) [function.copy]: failed to open stream: No such file or directory in /home/scootin1/public_html/maysportinggoods.com/store/core/fn.fs.php on line 278

[quote name=‘MaySportingGoods’]Warning: copy(/home/scootin1/public_html/maysportinggoods.com/store/home/scootin1/public_html/maysportinggoods.com/images/images_backup/product_images/Beretta 003.jpg) [function.copy]: failed to open stream: No such file or directory in /home/scootin1/public_html/maysportinggoods.com/store/core/fn.fs.php on line 278[/QUOTE]



May,



Check your path that you are importing. That is not a correct path. Make sure you didn’t copy and paste your path twice.



Adam

No matter what I do it duplicates it, even if I leave it blank… Well I will work on it some more I suppose… Same error no matter what i do…

Found the problem thx all working fine now

May,



What was the solution so everyone else can learn?



Adam

It was actually quiet simple, (Sorry so long to reply)



1: Create a folder called detailed_images and place it in backup folder of the site you are importing to (New Site)



2: Copy only your large images over to this folder you created on new site(CS-Cart will convert to thumbs during import)



3: When exporting from old site make sure the image path is the path of the new site detailed_Images folder (This is where I kept messing up)



4: Export file to folder on your PC



5: Goto new site you want to import to, make sure image path is the exact same as before (pointing to detailed_Images folder on new site)



([COLOR=“Red”]Be sure export paths and import paths are to the same detailed_images folder on the new site[/COLOR])



6: Import and yee haw!! (I hope I was clear enough on how to do this) I do not guarantee it will work for all but it seems this is the only way it will work.



Good Luck!

[quote name=‘MaySportingGoods’]This is the error I get when trying to import images… any ideas?





Warning: copy(/home/scootin1/public_html/maysportinggoods.com/store/home/scootin1/public_html/maysportinggoods.com/images/images_backup/product_images/Beretta 003.jpg) [function.copy]: failed to open stream: No such file or directory in /home/scootin1/public_html/maysportinggoods.com/store/core/fn.fs.php on line 278[/quote]



Hi, I get the same error on a local machine but with “Invalid argument” error:


[quote]Importing data

Updating Images…18.

Warning: copy(C:/xampplite/htdocs/2011/C:/xampplite/htdocs/2011/images/backup/product/ecommerce-solutions.jpg) [function.copy]: failed to open stream: Invalid argument in C:\xampplite\htdocs\2011\core\fn.fs.php on line 278[/quote]I tried everything, all files and paths are correct. I use only thumbnail images.



Any ideas?

I have mine setup on local pc as well as online however i did not have the problem you are having.



where ever you are exporting from andimporting to, these two paths have to be identical to each other. (This was where I had the problem) Check both paths from the export file to the import file and make sure they are same. for instance mine is



C:/xampp/htdocs/cscart/images/backup/detailed_images (exporting from)

C:/xampp/htdocs/cscart/images/backup/detailed_images (importing to)



Just have to manualy cooy the images into that detailed_images folder.



Hope this helps.



Discount Sporting Goods