Jump to content

Champs manquant dans l'import des déclinaisons en csv


Recommended Posts

J'ai trouvé la solution à mon problème, voici la démarche, si cela peut servir à quelqu'un :

 

ouvrir le fichier controllers/admin/AdminImportController.php

 

chercher ligne 135 :

'price' => array('label' => $this->trans('Impact on price', array(), 'Admin.Catalog.Feature')),

et ajouter ceci juste après :
'unit_price_impact' => array('label' => $this->trans('Impact on price per unit (tax excl.)', array(), 'Admin.Catalog.Feature')),

 

cherche ligne 172 :

'price' => 0,

et ajouter :

'unit_price_impact' => 0,

 

chercher ligne 2570 :

$info['price'] = str_replace(',', '.', $info['price']);

et ajouter :

$info['unit_price_impact'] = str_replace(',', '.', $info['unit_price_impact']);

 

chercher ligne 2600 :

(float)$info['weight'],

et remplacer "0," qui se trouve juste après par :

(float)$info['unit_price_impact'],

 

chercher ligne 2629 :

(float)$info['weight'],

et remplacer "0," qui se trouve juste après par :

(float)$info['unit_price_impact'],

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...