Increase Cart Quantities in AJAX
-
Background:
I have a mini cart view in my webpage’s header.
I found 2 methods to achieve this, still deciding which one to use;- a Cart Widget hack (just having a div with class .widget_shopping_cart_content gets a mini cart automatically on-load)
- or a Cart Shortcode hack (‘add_to_cart_fragments’ filter which just echoes do_action(‘[woocommerce_cart]’)
Question:
What’s the simplest way to change cart items’ quantity on the fly with ajax, and it should trigger the woocommerce fragments to update (so my mini cart view updates) ?
- The topic ‘Increase Cart Quantities in AJAX’ is closed to new replies.