Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
[SOLVED] CSV Import Images
#1
Posted 24 November 2009 - 04:26 PM
I was just wondering what the default directory is if you use CSV import for images. e.g. if in the csv you put image1.jpg in the image url column.
I cannot seem to get them to work. Using clean 1.2.5.
Thanks in advance
#2
Posted 24 November 2009 - 05:22 PM
its easy, dont USE dir IMG, create your new dir in root of Prestashop etc imgimport and to this dir copy your images of imports products.
In csv file in URL column type:
../imgimport/nameofimage.jpg
Try it, i think, it help :)
When it doesnt work, use my AdminImport.php and replace it in Admin/tabs.
Attached File(s)
AdminImport.php (49bytes)
Number of downloads: 1282
,,Pokiaľ mi nedáš aspoň hviezdičku tak sa ma ani na nič nepýtaj!"
FORCE COMPILE - ZAPNOUT
CACHE - VYPNOUT
#3
Posted 25 November 2009 - 11:29 AM
You dont realise how many attempts I did to get it working. I read loads of forum posts and nothing!
The "../mydirectory/myimage.jpg" worked a treat!
If anyone is having problems with Image Url on their CSV import try that first!
Thank you so much!
Rep your way!
#4
Posted 15 December 2009 - 03:33 PM
I tried so many combinations of URL that I got mad! This one also works by the way for 1&1;:
/homepages/12/d1234567/htdocs/yourPSdirectoryname/imgimport/test.jpg
Also, the case is important...after trying 20 times I relaised I had .JPG instead of .jpg...
I suggest trying with a small csv of 3-4 lines, using notepad++ and for each product ID try a different path if unsure...one will eventually work!
For each subsquent test, increment the ID so that you can see what changed.
Finally, I realised sharing a database with a magento install created issues and starting from scratch on a blank one helped.
Overall, first impression of PS is very good for me, nice and easy. Not as rich as Magento but probably as efficient and faster...and time is money!
#5
Posted 15 December 2009 - 04:53 PM
#6
Posted 16 December 2009 - 03:43 AM
1.2.5.0+xamp
#7
Posted 16 December 2009 - 11:20 AM
#8
Posted 16 December 2009 - 12:57 PM
In cvs file lines are following this pattern
ProductID;"../productImages/image.jpg";ProductName
312;"../productImages/table1.jpg";Kitchen table
When you select cvs file set drop-down to Products,and in this example
i choose columns ID,Image URLs (x,y,z...),Name
Hope that this helps :-)
#9
Posted 16 December 2009 - 02:30 PM
THANKS
i found that the point it's , i have to add " to the URL address.
thanks again.
#10
Posted 10 January 2010 - 07:25 AM
Just an other question, what do you change in the file AdminImport.php ?
I see a lot of modifications like image management can you explain a little bit ?
I'm gonna try image tip in 1.2.5
Thanks for your contribution.
Création site web Prestashop
Immobilier Hyères
Vanille
#11
Posted 11 January 2010 - 05:35 PM
Thay are copied in img dir like that :
0-10-home.jpg
0-10-large.jpg
0-10-medium.jpg
0-10-small.jpg
0-10-thickbox.jpg
This is the information I put in my CSV file
../images/vignette-produits-557.jpg
I just want image in my product listing.
Any ideas ?
Thanks for your help
Création site web Prestashop
Immobilier Hyères
Vanille
#12
Posted 02 February 2010 - 07:49 PM
From 1260892390:
And I am another one...I sold my clients on Magento and wasted a month and a half trying to get it to work. If PS would step up with great documentation, it would be a world-class product.
CSV image import is a case in point. How hard would it be to write documentation on how to import? Thanks to @jakcrabbit and @razaro for the solution...make sure you put quotes around your path: ".../imgupload/image.jpg". Straight quotes, not right and left quotes.
#13
Posted 21 February 2010 - 10:05 PM
#14
Posted 10 March 2010 - 07:38 PM
#15
Posted 19 March 2010 - 02:04 PM
http://www.prestasho...d/43659/#195931
,,Pokiaľ mi nedáš aspoň hviezdičku tak sa ma ani na nič nepýtaj!"
FORCE COMPILE - ZAPNOUT
CACHE - VYPNOUT
#16
Posted 07 April 2010 - 11:40 AM
first, sorry about my english ;-)
my problem is, that there are no images shown at my shop, when i do the csv-import in presta. i have ca. 10.000 of extern picture-URLs to import, but not one is shown after importing the csv ... i only see the "grey questionmark". the rest of the imported datas are ok shown. only ZERO pictures!!!
i tried a lot but nothing helped ... :(
did i understand it correctly, that the AdminImport.php could change to the new directory bsp: /IMGtest ??? how must i do the changings?
#17
Posted 07 April 2010 - 12:11 PM
,,Pokiaľ mi nedáš aspoň hviezdičku tak sa ma ani na nič nepýtaj!"
FORCE COMPILE - ZAPNOUT
CACHE - VYPNOUT
#18
Posted 07 April 2010 - 03:20 PM
so you mean the allow_url_fopen ??? this is ON.
Ok, then i will try it.
thanks a lot.
greets
#19
Posted 07 April 2010 - 03:28 PM
,,Pokiaľ mi nedáš aspoň hviezdičku tak sa ma ani na nič nepýtaj!"
FORCE COMPILE - ZAPNOUT
CACHE - VYPNOUT
#20
Posted 07 April 2010 - 03:58 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












