stevenhab Posted February 21, 2011 Share Posted February 21, 2011 Bonjour à tous,je fonctionne actuellement avec un ports fixe à 5,60€ que je souhaite supprimer très bientôt. Mais pour cela j'ai besoin d'augmenter tous mes produit d'un certain montant fixe, et comme je n'ai pas envi de passer sur les 150 produits...Auriez-vous une petite astuce pour faire cela ? Merci d'avance pour votre aide.Steven Link to comment Share on other sites More sharing options...
yucom Posted February 22, 2011 Share Posted February 22, 2011 utilise STore commanderouune petite requete SQL...mais STore commander est beaucoup plus rapide et securié.. surtout si tu veux augmenter le prix TTC Link to comment Share on other sites More sharing options...
stevenhab Posted February 22, 2011 Author Share Posted February 22, 2011 Bonjour,merci pour ta réponse mais SC est un peu trop chers pour mon besoin. Une idée de la requête à taper ?Merci Link to comment Share on other sites More sharing options...
bschuller Posted February 23, 2011 Share Posted February 23, 2011 Un truc du style : UPDATE `prestashop`.`ps_product` SET `price` = `price` + '1';(avec à la place du '1' la somme que tu veux rajouter au prix) Attention cette requête modifie l'ensemble de tes articles. (attention il s'agit là du prix HT, le prix TTC étant calculé via le prix HT) Link to comment Share on other sites More sharing options...
stevenhab Posted February 23, 2011 Author Share Posted February 23, 2011 oui si tu as activé la TVA, car pour moi mon Prix de vente HT = Prix de vente TTCes-tu sur de cette requête ? sinon je monte un instance de PS en locale pour la tester mais si t'es sûr c'est peut être pas la peine..Merci Link to comment Share on other sites More sharing options...
stevenhab Posted March 4, 2011 Author Share Posted March 4, 2011 Bonjour,cette commande m'est refusée sur mon phpMyAdmin de chez OVH... Link to comment Share on other sites More sharing options...
X@vier Posted March 4, 2011 Share Posted March 4, 2011 C'est étonnant quelle formule d'OVH ? Link to comment Share on other sites More sharing options...
stevenhab Posted March 4, 2011 Author Share Posted March 4, 2011 C'est un OVH PROet voici le msg d'erreur : 1142 - UPDATE command denied to user 'nom_base'@'10.0.120.3' for table 'ps_product' Link to comment Share on other sites More sharing options...
stevenhab Posted March 5, 2011 Author Share Posted March 5, 2011 ca fonctionne... je me trompais dans le nom de la base... il faut également retirer les ' ' qui encadre le prix à augmenter.Merci à tous ! Link to comment Share on other sites More sharing options...
jujutte24 Posted May 3, 2012 Share Posted May 3, 2012 Et par fournisseur, ça peu fonctionner ? 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