外掛說明
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
安裝方式
This section describes how to install the plugin and get it working.
- Upload
add-multiple-product-wc-cart.zipto the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Use the provided URL format to add multiple products to the cart.
常見問題集
-
How do I add multiple products to the cart?
-
Use the URL format:
?add-to-cart=product_id:quantity,product_id:quantity -
What happens if I don’t specify a quantity?
-
If no quantity is specified, the product will be added with a quantity of 1.
使用者評論
2025 年 5 月 14 日
I really liked it, it worked really well
2025 年 2 月 22 日
Hey Mr. Alvaro,Thank you very much for this highly demanding plugin. You are great.Good wishes 🙂
參與者及開發者
變更記錄
1.0
- Initial release.

