Woocommerce Cart Item Count does not work with HTML selectors

Hi,

I noticed {{dc:woocommerce:cart_items}} is working good but <span class="counter-for-specific-location">{{dc:woocommerce:cart_items}}</span> doen’t update cart item count; Is there any trick to have realtime cart counter within html selectors to have more control on related content?

Thanks in advance.
Omid

Hello Omid,

Thanks for writing in! Where did you insert the Cart Counter dynamic content with the HTML code? It should work if you insert it in a Raw Content element. I have tested it on my local testing server added to the custom header and it works for me:

Hope this helps. Kindly let us know how it goes.

Hi @ruenel

It was a JS conflict in my website and solved.

Thank you!

We’re glad you sorted it out.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.