not sure where to put this, but hopefully this is ok.
Seems there is a disconnect when we add additional products to the cart (programmatically) in horizon. it seems the cartBubbleCount only updates the count when this happens and not the cartBubbleText?
Hey again @ChrisBradley - thanks for flagging this, this definitely does seem odd. Just to clarify to make sure I’m understanding correctly, the quantity in the bubble does update when you change the cart lines quantity on the frontend, but when you change the cart programatically (through the storefront API for example), it doesn’t update?
Does the bubble text eventually update if you refresh the page? Just want to make sure I can replicate this accurately on my end - I think my next step after I hear back from you will be to touch base with our Horizon product team.
Hope to hear from you soon, we’ll get this looked into!
@Alan_G yeah its a little weird… especially as they both seem to ref the same formula, although the cart draw is loading on click so it migth be getting a fresh calc.
Interestingly, as I navigate to different pages it will intially display the correct count and then revert to the incorrect number.
I think a page refresh (from what I have seen) resolves the issue.
@Alan_G - update - a page refresh has not update. I have done a quick screen recording of the issue (including a refresh of the page and changing pages/etc).
Thanks for the video @ChrisBradley , that does look really odd for sure. I’ll do some more digging into this on my end and reach out to our theme product team to see if we can confirm expected behaviour or look into this as a bug.
I’ll loop back with you here once I have more info/next steps to share.
Hey @ChrisBradley - just following up with you here as I was able to work with our team on this. Could you try removing the call to this.ensureCartBubbleIsCorrect(); in assets/cart-icon.js and let us know if that resolves the issue? If you do require that call to remain or encounter any other issues, just let me know and I can take another look.