Any opinions on where to put custom JS that updates the DOM directly during diplaying the cart?
1. In using site builder in reference checkout 2.05 - and it’s a known issue that when using the cart summary tag to display the item count, that number will be inaccurate when a user logs in to their account after having previously added an item to the cart.
a. This is because the page doesn’t refresh so the tag isn’t fired again after the user has logged in.
2. I have some JavaScript that calls a WSDK tag to extract the current item count using a URL like this, then updates the DOM directly:
https://www.domain.com/app/site/query/getcartitemcount.nl?c=555555&n=1
My question is where to put this custom JS in order to update the cart in the most direct/efficient manner?