ItemStyle Posted January 7, 2013 Share Posted January 7, 2013 Bonjour, La copie de personnalisation de produits avec ajout des langues ne fonctionnent pas, après vérification de la fonction duplicateCustomizationFields, il manque une portion de code ou code à revoir, $query et sa requete : if (isset($customizations['labels'])) { $query = 'INSERT INTO `'._DB_PREFIX_.'` (`id_customization_field`, `id_lang`, `name`) VALUES '; $data = array(); foreach ($customizations['labels'][$old_customization_field_id] as $customization_label) $data = array( 'id_customization_field' => (int)$customization_field_id, 'id_lang' => (int)$customization_label['id_lang'], 'name' => pSQL($customization_label['name']), ); if (!Db::getInstance()->insert('customization_field_lang', $data)) return false; } Link to comment Share on other sites More sharing options...
ItemStyle Posted January 7, 2013 Author Share Posted January 7, 2013 Ceci fonctionne : if (isset($customizations['labels'])) { $data = array(); foreach ($customizations['labels'][$old_customization_field_id] as $customization_label) { $data = array( 'id_customization_field' => (int)$customization_field_id, 'id_lang' => (int)$customization_label['id_lang'], 'name' => pSQL($customization_label['name']) ); $result = Db::getInstance()->AutoExecute( _DB_PREFIX_.'customization_field_lang',$data, 'INSERT'); } } 1 Link to comment Share on other sites More sharing options...
SCAMPAI Posted March 30, 2013 Share Posted March 30, 2013 (edited) Bonjour, Mon fichier duplicate_customization.php date du 09/01/2013 et je ne trouve pas ce code, je voudrais savoir si le fichier a déjà été modifié et si je peux l'utiliser. Merci cdlt, Philippe Edited March 30, 2013 by Graphileom (see edit history) 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