P i l o u Posted March 16, 2018 Share Posted March 16, 2018 Bonjour, Il m'arrive de temps en temps de supprimer d'anciens paniers qui ne sont pas passés en commande. Ce matin, je veux le faire et j'ai un message d'erreur : J'ai cherché cette table ps_customized_data, elle existe bien mais elle est vide.. Serait-ce la cause de l'erreur ? Merci d'avance de votre aide. Pilou Link to comment Share on other sites More sharing options...
doekia Posted March 16, 2018 Share Posted March 16, 2018 (edited) Bug notoire prestashop, la requête devrait être: Db::getInstance()->execute(' DELETE cd FROM `' . _DB_PREFIX_ . 'customized_data` cd, `' . _DB_PREFIX_ . 'customization` c WHERE cd.`id_customization` = c.`id_customization` AND `id_cart` = ' . (int) $this->id ); Dans classes/Cart.php aux alentours de la ligne 271 (function delete()) https://aide.prestashop.click/topic/1041/1-6-1-16-unknown-table-ps_customized_data-in-multi-delete Edited March 16, 2018 by doekia (see edit history) 1 Link to comment Share on other sites More sharing options...
P i l o u Posted March 16, 2018 Author Share Posted March 16, 2018 Bonjour doekia, Merci de ton aide. Voilà le code que j'ai actuellement ligne 271 et suivantes: Db::getInstance()->execute(' DELETE `' . _DB_PREFIX_ . 'customized_data` FROM `' . _DB_PREFIX_ . 'customized_data` cd, `' . _DB_PREFIX_ . 'customization` c WHERE cd.`id_customization` = c.`id_customization` AND `id_cart` = ' . (int) $this->id ); Je remplace par le code que tu as donné pour voir. Link to comment Share on other sites More sharing options...
P i l o u Posted March 16, 2018 Author Share Posted March 16, 2018 Merci beaucoup doekia, c'est bien ça ! 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