Add Multiple Products To Cart Via Url For Woocommerce Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
This plugin allows adding multiple simple (not variable or grouped) products to the WooCommerce cart using URL parameters. While WooCommerce natively supports adding a single product to the cart via a URL parameter like add-to-cart=product_id&quantity=quantity
, this plugin extends that functionality to support multiple products in a single URL.
How it works:
- URL Format:
?add-to-cart=product_id:quantity,product_id:quantity,product_id:quantity
- Single Quantity: If the quantity is not specified (eg.
?add-to-cart=product_id,product_id:quantity
), the product is added with a quantity of 1.
Examples:
- Adding multiple products with specific quantities:
example.com/cart/?add-to-cart=12:2,34:1,56:5 - Adding multiple products with default quantity:
example.com/cart/?add-to-cart=12,34:2,56