Triggering AJAX to make button appear

In my header, I’ve set up a standard Cart Items element with an item count. I’ve also set up a button next to it that only displays when Cart Items > 0, and it’s a link to check out. It works great except it takes a page refresh to appear.

So I’m wondering what I need to do to trigger the appearance of that button the moment someone puts something into their cart (vs have it wait to appear until they navigate to another page. Thanks!

Hello @mgiraud,

Thanks for writing in! I can see that you are using Basket: ({{dc:woocommerce:cart_items}}) in your custom header. Regretfully you cannot use this along with the WooCommerce block. We do not have any feature that uses AJAX to update the cart item totals.

Best Regards.

ok, thanks

Hi @mgiraud,

You are most welcome.

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