Szed Posted November 12, 2013 Share Posted November 12, 2013 Hello, pour un développement d'un module, je cherche à appeler $cart->getSummaryDetails() en ajax, apres la mise a jour du panier (ajout au panier, changement de quantité, etc). J'arrive bien à l'appeler, mais ca se passe avant la mise à jour. Tu coup, ma requête me retourne le bon résultat avec une action de retard x) Quelqu'un aurait une piste ? Merci Link to comment Share on other sites More sharing options...
Prestaspirit Posted November 12, 2013 Share Posted November 12, 2013 Salut, Regarde du coté des hooks, sur la 1.5 il y a un hook actionCartSave qui pourrait surement faire l'affaire actionSaveCart : This hook is displayed when a product is added to the cart or if the cart's content is modified y'en a d'autres aussi. Link to comment Share on other sites More sharing options...
Szed Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) Hello, merci pour la réponse, j'étais passé devant. Cependant, ce hook semble être invisible. Je ne peux donc pas utilisé un .tpl contenant la requête Ajax allant appeler $cart->getSummaryDetails() et ensuite faire ce que j'ai à faire en JS. Une idée ? Edited November 13, 2013 by Szed (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