Title: Add multiple products to cart via url for Woocommerce
Author: Alvaro Vasconcelos
Published: <strong>27 dezembro, 2024</strong>
Last modified: 16 março, 2026

---

Pesquisar plugins

![](https://ps.w.org/add-multiple-products-to-cart-via-url-for-woocommerce/assets/
banner-772x250-pt_BR.png?rev=3213935)

![](https://ps.w.org/add-multiple-products-to-cart-via-url-for-woocommerce/assets/
icon-256x256.png?rev=3213935)

# Add multiple products to cart via url for Woocommerce

 Por [Alvaro Vasconcelos](https://profiles.wordpress.org/alvsconcelos/)

[Baixar](https://downloads.wordpress.org/plugin/add-multiple-products-to-cart-via-url-for-woocommerce.1.1.0.zip)

 * [Detalhes](https://br.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/#description)
 * [Avaliações](https://br.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/#developers)

 [Suporte](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/)

## Descrição

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

## Capturas de tela

[⌊Example of URL format with multiple products.⌉⌊Example of URL format with multiple
products.⌉[

Example of URL format with multiple products.

## Instalação

#### 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.

## Perguntas frequentes

### 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.

## Avaliações

![](https://secure.gravatar.com/avatar/397b0d12b48f689fad6730036b75e61fac515b62ed32340d0485fc719e073ae3?
s=60&d=retro&r=g)

### 󠀁[Best plugin!](https://wordpress.org/support/topic/best-plugin-1475/)󠁿

 [Morais Junior](https://profiles.wordpress.org/jucaduca/) 14 maio, 2025

I really liked it, it worked really well

![](https://secure.gravatar.com/avatar/8dd6f45437e82d0cf5d0793e5bfe48323ef6b5e318ffdfe2549a04147f73837a?
s=60&d=retro&r=g)

### 󠀁[The one & only solution](https://wordpress.org/support/topic/the-one-only-solution/)󠁿

 [Atul Prajapati](https://profiles.wordpress.org/atulkprajapati/) 22 fevereiro, 
2025

Hey Mr. Alvaro,Thank you very much for this highly demanding plugin. You are great.
Good wishes 🙂

 [ Leia todas as 2 avaliações ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/)

## Colaboradores e desenvolvedores

“Add multiple products to cart via url for Woocommerce” é um programa de código 
aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

 *   [ Alvaro Vasconcelos ](https://profiles.wordpress.org/alvsconcelos/)

Add multiple products to cart via url for Woocommerce” foi traduzido para 1 localidade.
Agradecemos aos [tradutores](https://translate.wordpress.org/projects/wp-plugins/add-multiple-products-to-cart-via-url-for-woocommerce/contributors)
por suas contribuições.

[Traduzir o “Add multiple products to cart via url for Woocommerce” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/add-multiple-products-to-cart-via-url-for-woocommerce)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/add-multiple-products-to-cart-via-url-for-woocommerce/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/add-multiple-products-to-cart-via-url-for-woocommerce/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/add-multiple-products-to-cart-via-url-for-woocommerce/)
por [RSS](https://plugins.trac.wordpress.org/log/add-multiple-products-to-cart-via-url-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 1.1.0

 * Tested and compatible with WordPress 6.9.4 and WooCommerce 10.x.
 * Added `Requires Plugins: woocommerce` header (WordPress 6.5+ standard).
 * Added configurable limit of 50 products per request (overridable via `wp-config.
   php`).
 * Added configurable maximum quantity of 999 per product (overridable via `wp-config.
   php`).
 * Fixed internal hook re-registration argument count.
 * Improved readme with expanded Installation, FAQ, and Configuration sections.
 * Added PHPUnit test suite (available in the GitHub repository).

#### 1.0

 * Initial release.

## Meta

 *  Versão **1.1.0**
 *  Última atualização **8 meses atrás**
 *  Instalações ativas **200+**
 *  Versão do WordPress ** 5.0 ou superior **
 *  Testado até **6.9.11**
 *  Versão do PHP ** 7.4 ou superior **
 *  Idiomas
 * [English (US)](https://wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/)
   e [Portuguese (Portugal)](https://pt.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/).
 *  [Traduzir para seu idioma](https://translate.wordpress.org/projects/wp-plugins/add-multiple-products-to-cart-via-url-for-woocommerce)
 * Tags
 * [add to cart](https://br.wordpress.org/plugins/tags/add-to-cart/)[cart](https://br.wordpress.org/plugins/tags/cart/)
   [products](https://br.wordpress.org/plugins/tags/products/)[url](https://br.wordpress.org/plugins/tags/url/)
   [woocommerce](https://br.wordpress.org/plugins/tags/woocommerce/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/add-multiple-products-to-cart-via-url-for-woocommerce/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  2 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/reviews/)

## Colaboradores

 *   [ Alvaro Vasconcelos ](https://profiles.wordpress.org/alvsconcelos/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/add-multiple-products-to-cart-via-url-for-woocommerce/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](https://www.paypal.com/donate/?hosted_button_id=UUF8HHCVQNG6G)