WooCommerce - excelling eCommerce
Increase Cart Quantities in AJAX (1 post)

  1. journeymanweb
    Posted 1 year ago #

    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]')

    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) ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic