Tag: woocommerce

  • Add Multiple Products to WooCommerce Cart at Once

    Add Multiple Products to WooCommerce Cart at Once

    We were working on a WooCommerce project that required us to add multiple products to the cart from a single click of a button.

    We wanted a solution from the JavaScript side, and we came up with the following code. This should fire when the “add to cart” button is clicked:

    Here’s a gist that contains the solution.