Trigger ajax cart update from javascript. #100
Answered
by
EvgeniyMukhamedjanov
manuelhpineda
asked this question in
Q&A
-
Hello, is there a feature to trigger an update from outside the ajax cart. For example I want to open a cart drawer and trigger and update event for the ajax cart to do the normal rendering as if I am adding a product from ajax cart. |
Beta Was this translation helpful? Give feedback.
Answered by
EvgeniyMukhamedjanov
May 14, 2024
Replies: 1 comment 2 replies
-
so what I am doing not sure if this is the best option but I am triggering this event to update the cart:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @manuelhpineda
If I understood you right, you just need to call window.liquidAjaxCart.update() method.