Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

/cart/addItem does not update visible cart-Item-Count #10705

Discussion options

You must be logged in to vote

I have found that an event is registered to the body-element called: updated_wc_div
If this event is called after I have added items to the cart using StoreAPI's /cart/addItem, the cart-count updates as wished.
I call this event via javascript using jQuery("body").trigger("updated_wc_div")

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@elaspix
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by elaspix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: rest api Work impacting REST api routes.
3 participants