plugin-icon

Add multiple products to cart via url for Woocommerce

제작자: Alvaro Vasconcelos·
Add multiple products to WooCommerce cart with native add-to-cart parameters.
평가
5
버전
1.1.0
활성화된 설치 항목
200
최근 업데이트일
Mar 16, 2026
Add multiple products to cart via url for Woocommerce

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

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 );

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.9.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.