| 开发者 | alvsconcelos |
|---|---|
| 更新时间 | 2026年3月16日 11:24 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9.4 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
add-to-cart=product_id&quantity=quantity, this plugin extends that functionality to support multiple products in a single URL.
How it works:
?add-to-cart=product_id:quantity,product_id:quantity,product_id:quantity?add-to-cart=product_id,product_id:quantity), the product is added with a quantity of 1.example.com/cart/?add-to-cart=12:2,34:1,56:5example.com/cart/?add-to-cart=12,34:2,56Add multiple products to cart via url..zip file..zip file and click Install Now, then Activate.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.
Requires Plugins: woocommerce header (WordPress 6.5+ standard).wp-config.php).wp-config.php).