Jump to content

Import combinazioni prodotti con CSV


mosan

Recommended Posts

Ciao,

faccio l'import utilizzando un file CSV con questi campi:

id_product;group;attribute;quantity;default_on;reference;price;ean13

 

va tutto bene fino a che non devo sincronizzare come taglia tre valori 0, 00, 000

 

ovvero:

 

1;Taglia:Select:0, Colore:select:1;000:1, BIANCO:1;0.000;1;1000***BIA#000;0;
1;Taglia:Select:0, Colore:select:1;00:2, BIANCO:1;0.000;0;1000***BIA#00;0;
1;Taglia:Select:0, Colore:select:1;0:3, BIANCO:1;0.000;0;1000***BIA#0;0;
1;Taglia:Select:0, Colore:select:1;1:0, BIANCO:1;-6.000;0;1000***BIA#1;0;
1;Taglia:Select:0, Colore:select:1;2:0, BIANCO:1;-6.000;0;1000***BIA#2;0;
1;Taglia:Select:0, Colore:select:1;3:0, BIANCO:1;0.000;0;1000***BIA#3;0;
1;Taglia:Select:0, Colore:select:1;4:0, BIANCO:1;0.000;0;1000***BIA#4;0;
 
in questo caso mi importa solo le combinazioni taglia 0,1,2,3,4
non importa la 00 e la 000
 
la mia sensazione è che vengano sovrascritte da quella con uno 0 solo ma ho provato a metterle tra apici e non cambia nulla.
 
Prestashop 1.6.1.5
 
Qualcuno riesce ad aiutarmi?
 
Grazie in anticipo
Edited by mosan (see edit history)
Link to comment
Share on other sites

se può essere utile a quacuno, io ho risolto modificando il file classes/Combination.php:

 

alla linea 313 circa ho eliminato i %

 

        $query->where('pa.reference LIKE \''.pSQL($reference).'\'');
 
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...