xpay✦ Commerce
Directory
WooCommerce plugins
Add multiple products to cart via url for Woocommerce
Add multiple products to cart via url for Woocommerce
Add multiple products to WooCommerce cart with native add-to-cart parameters.
5.0
(2 ratings)Will this break my store?
What the WordPress.org registry says about keeping Add multiple products to cart via url for Woocommerce running.
Tested to 6.9.5 — 1 branch behind 7.0
Tested against the WordPress branch in use today.5 months ago
At least 1.9 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.4
Your host must be running at least this version.5.0
woocommerce
These must be installed and active first.1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how Add multiple products to cart via url for Woocommerce is looked after — not on how many stores run it.
Maintenance
35 / 35WordPress compatibility
14 / 20Support responsiveness
Not enough dataMerchant satisfaction
11 / 15Listing transparency
0 / 10Ratings
5.0
2 ratingsThis 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
Configuration
The plugin works out of the box with no configuration required. However, you can optionally define the following constants in your wp-config.php to adjust the default limits:
Maximum products per request (default: 50)
define( ‘ADD_MULTIPLE_TO_WC_CART_PRODUCT_LIMIT’, 50 );
Limits how many product entries are processed in a single URL. Extra products beyond the limit are silently ignored.
Maximum quantity per product (default: 999)
define( ‘ADD_MULTIPLE_TO_WC_CART_QTY_MAXIMUM’, 999 );
Caps the quantity of each individual product. Any quantity above this value is clamped to the maximum.
Example — allow up to 10 products with a max qty of 100:
define( ‘ADD_MULTIPLE_TO_WC_CART_PRODUCT_LIMIT’, 10 );
define( ‘ADD_MULTIPLE_TO_WC_CART_QTY_MAXIMUM’, 100 );
Use the URL format: ?add-to-cart=product_id:quantity,product_id:quantity
For example: https://yourstore.com/cart/?add-to-cart=12:2,34:1,56:5 will add product 12 (qty 2), product 34 (qty 1), and product 56 (qty 5) to the cart in a single request.
If no quantity is specified, the product will be added with a quantity of 1. Example: ?add-to-cart=12,34:2,56 adds products 12 and 56 with qty 1, and product 34 with qty 2.
The plugin supports simple and variable product types. Grouped products are not supported.
The plugin hooks into WooCommerce’s native wp_loaded action and works independently of the cart page template (classic or blocks).
Yes, WooCommerce must be installed and active. The plugin will do nothing if WooCommerce is not detected.
Categories
Plugin details
Tags on WordPress.org
