Hello,
Que signifie le paramètre
callerElement
dans la méthode :
ajaxCart.add = function(idProduct, idCombination, addedFromProductPage, callerElement, quantity, whishlist)
Je ne le trouve pas dans la doc prestashop.
Merci.
Problem: When clicking the add to cart button, the animation of the picture flying to the cart doesn't work.
So I check ajaxCart.js. $element seemed to be pointing to the right places, as did the cartBlockOffset.
So I don't know why the animation isn't working.
Thanks, Josh.
EDIT: I've been working on this for hours, as soon as I post this post, I realised what it was:
Solution:
in ajaxCart.js on line 212 it says:
$(callerElement).parent().parent().find(
What I needed for my theme was a 3rd parent:
$(callerElement).parent().parent().parent().find(