ragheb Posted March 23, 2017 Share Posted March 23, 2017 Bonjour, Je souhaite que chaque à chaque modification dans la liste des produits deux requêtes SQL s'exécute automatiquement. mysql_query('UPDATE ps_product_shop SET active=0 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity=0)'); mysql_query('UPDATE ps_product_shop SET active=1 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity>0)'); Comment faire ? Merci Link to comment Share on other sites More sharing options...
doekia Posted March 23, 2017 Share Posted March 23, 2017 Le mieux pour répondre à ton attente, c'est ça: https://eoliashop.com/modules-prestashop/updateelements Et que l'on ne te reprenne pas à utiliser mysql_query, , sinon on te pend par les orteils Link to comment Share on other sites More sharing options...
ragheb Posted March 23, 2017 Author Share Posted March 23, 2017 Il n'accepte pas le paiement par carte ! Link to comment Share on other sites More sharing options...
doekia Posted March 23, 2017 Share Posted March 23, 2017 Si, il y a paypal sur son site, donc CB ... il te suffit de ne pas créer de compte et de payer direct en CB 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