Fabiteby Posted April 24, 2017 Share Posted April 24, 2017 (edited) Bonjour, lors de l'import de déclinaisons en csv, aucun champ ne correspond au champ "Impact sur le prix unitaire (HT)" qui lui, est pourtant présent dans le back-office . Comment faire pour l'ajouter ? (Je travaille sur Prestashop 1.7) Edited April 24, 2017 by fabien.aeby (see edit history) Link to comment Share on other sites More sharing options...
Fabiteby Posted April 25, 2017 Author Share Posted April 25, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now