Jump to content

Problem with csv importing


Recommended Posts

;1;071 Prosecco Extra Dry;'52';16.236;;;1;$ 16.00 on 2cs 146.40 | $ 40.00 on 3cs 122.40 | ;;;;;;Southern Wine & Spirits;;;;;;;;;SPARKLING WINE - IMPORTED;;;;;;;1;;1;12;;;ITALY;VENETO;PROSECC;194.88;16.236;https//library.bevnetwork.com/LABels/700/t_109604.jpg;0;size:750ML;;;;

here is my data .my cat id is 52 but product associated with home category when i do import

Link to comment
Share on other sites

Try this

 

File: controllers/admin/AdminImportController.php

Function: split

The problem is that the $temp var isn't being assigned, so no file is opened.

To solve it, change this line:

 

$fd = fopen($temp, 'r');

By

$fd = fopen(_PS_UPLOAD_DIR_.$uniqid, 'r');

Link to comment
Share on other sites

One thing more can you please tell me how to import Product images with csv file in prestashop

You can paste in your browser the entire path of your image

for example : http://localhost:8888/prestashop/upload/bichoco.jpg

if you see the image in a new internet window your path it's good :)

 

the path of your image of the csv file

https//library.bevnetwork.com/LABels/700/t_109604.jpg

 

 

https://library.bevnetwork.com/LABels/700/t_109604.jpg

Link to comment
Share on other sites

  • 1 month later...

Thank you prestashop addict! I applied the change to AdminimportController.php from the previous post and it fixed my problem of categories not being assigned during product import. Wish I was smart enough to understand the change, but somethings can't be fixed.

Link to comment
Share on other sites

Hello dogwood,
 

 

Thank you prestashop addict! I applied the change to AdminimportController.php from the previous post and it fixed my problem of categories not being assigned during product import.

So it's fixed

 

Wish I was smart enough to understand the change, but somethings can't be fixed.

I don't understand your answer. Fix or not ? :huh:

Link to comment
Share on other sites

×
×
  • Create New...