Eurodyl Posted March 7, 2013 Share Posted March 7, 2013 Bonjour, Nous utilisions un module "maison" pour la mise à jour de produits sur une boutique en 1.4, qui faisait appel au hook updateProduct via un Module::hookExec('updateProduct', $produit) Le système a visiblement changé dans la version 1.5, malheureusement j'ai bien peur de ne pas tout comprendre :/ On trouve énormément de doc sur comment rajouter un hook, mais je ne trouve pas comment appeler simplement le actionProductUpdate Quelqu'un pourrait-il m'expliquer comment effectuer la même chose en 1.5 ? Merci d'avance. Link to comment Share on other sites More sharing options...
benjamin utterback Posted March 7, 2013 Share Posted March 7, 2013 Hello, I will move this to the French Forum Language. Thank you ! Link to comment Share on other sites More sharing options...
Eurodyl Posted March 7, 2013 Author Share Posted March 7, 2013 Thank you. Sorry for this mistake. Link to comment Share on other sites More sharing options...
Eurodyl Posted March 21, 2013 Author Share Posted March 21, 2013 Un petit UP, quelqu'un a-t-il une idée ? Lancer ce hook permet de lancer des actions assez pratique, comme prévenir un client de la remise en stock d'un produit, lancer la mise à jour eBay etc. Link to comment Share on other sites More sharing options...
delete Posted March 24, 2013 Share Posted March 24, 2013 Bonjour, C'est une question piège ? car la réponse semble tellement simple : Hook::exec('actionProductUpdate', array('product' => $product)); Link to comment Share on other sites More sharing options...
Eurodyl Posted March 26, 2013 Author Share Posted March 26, 2013 Le problème c'est justement le "semble", cet appel ne fait rien. Qu'aurais-je pu oublier ? Link to comment Share on other sites More sharing options...
delete Posted March 26, 2013 Share Posted March 26, 2013 Que actionProductUpdate n'est hooké par aucun module, c'est possible et c'est le cas par défaut dans la 1.5 installée avec les modules de démo. Il faut regarder la liste des hooks du ou des modules concernés Link to comment Share on other sites More sharing options...
Nabbolo Posted March 14, 2015 Share Posted March 14, 2015 (edited) Avez-vous trouvé une solution? J'ai le meme problème! J'ai essayé actionProductUpdate, actionUpdateQuantity, updateProduct, updateQuantity, actionProductSave Edited March 14, 2015 by Nabbolo (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