Linux 软件免费装
Banner图

Add multiple products to cart via url for Woocommerce

开发者 alvsconcelos
更新时间 2026年3月16日 11:24
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9.4
版权: GPLv3 or later
版权网址: 版权信息

标签

woocommerce cart url products add-to-cart

下载

1.1.0 1.0

详情介绍:

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: Examples:

安装:

Automatic installation
  1. In your WordPress dashboard, go to Plugins → Add New.
  2. Search for Add multiple products to cart via url.
  3. Click Install Now and then Activate.
Manual installation
  1. Download the plugin .zip file.
  2. In your WordPress dashboard, go to Plugins → Add New → Upload Plugin.
  3. Select the .zip file and click Install Now, then Activate.
After activation No configuration needed — the plugin works immediately after activation. Use the URL format described in the Description section to start adding multiple products to the cart.

升级注意事项:

1.1.0 Compatibility update for WordPress 6.9.4 and WooCommerce 10.x. Recommended for all users. 1.0 Initial release of the plugin. Adds support for adding multiple simple and variable products to the WooCommerce cart via URL parameters.

常见问题:

How do I add multiple products to the cart?

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.

What happens if I don't specify a quantity?

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.

Does it work with variable or grouped products?

The plugin supports simple and variable product types. Grouped products are not supported.

Does it work with WooCommerce Blocks?

The plugin hooks into WooCommerce's native wp_loaded action and works independently of the cart page template (classic or blocks).

Is WooCommerce required?

Yes, WooCommerce must be installed and active. The plugin will do nothing if WooCommerce is not detected.

更新日志:

1.1.0 1.0