Level
Beginner
Steps
6
Time
About 10 minutes
You’ll need
A WooCommerce store, your product IDs, and CartPresets for the preset link
WooCommerce’s add-to-cart URL adds one product at a time, such as ?add-to-cart=123&quantity=2. To add multiple products to the cart via one URL, use the checkout link WooCommerce added in version 10.0, which empties the cart and opens checkout, or a plugin link that fills the cart at prices you set.
One product
?add-to-cart=ID&quantity=N works on every WooCommerce store and adds to whatever is already in the cart.
Several products
/checkout-link/?products=ID:N,ID:N, from WooCommerce 10.0, empties the cart first and opens checkout.
At your price
A CartPresets link such as /preset/starter-kit keeps the prices you set and lands on the cart by default.
How to get the add to cart link in WooCommerce
Every WooCommerce store understands an add-to-cart URL without a plugin. You need the product’s ID: in Products, hover over the product’s name and the ID appears under it. Put it after your store’s address, with a quantity if you want more than one:
https://yourstore.com/?add-to-cart=123&quantity=3
Leave out &quantity= and the link adds one. For a variable product, use the variation’s ID: the parent product’s ID only gets a “Please choose product options” message. Edit the product and open Variations to see each variation’s ID beside its options.
If a variation is set to “Any” for an attribute, such as any size, the link has to name a value too. For a global attribute called Size, that’s attribute_pa_size= followed by the term’s slug:
https://yourstore.com/?add-to-cart=456&attribute_pa_size=large
A grouped product is the one case where a single add-to-cart link adds several products, because each item in the group takes its own quantity:
https://yourstore.com/?add-to-cart=789&quantity[101]=1&quantity[102]=2
Unless your store redirects to the cart after each addition, the shopper lands on whichever page the link points to, so the examples above open your home page with the product added. Point the link at your cart or checkout page instead, such as https://yourstore.com/checkout/?add-to-cart=123, and they land there. The link adds to whatever is already in the cart, and it can’t apply a coupon.
Can WooCommerce add multiple products to the cart via URL?
The add-to-cart link can’t. WooCommerce reads add-to-cart as one product ID, so a list such as ?add-to-cart=123,456 or ?add-to-cart=123:2,456:1 isn’t a number, and WooCommerce skips the whole link. Repeating the parameter fails as well: ?add-to-cart=123&add-to-cart=456 adds only 456, because PHP keeps the last value it reads. Guides that show those formats rely on a plugin or a code snippet.
Since version 10.0, WooCommerce has its own way to do it: the checkout link. List each product as its ID and a quantity joined by a colon, with commas between products. Variations go in by their own ID, and you can add one coupon code:
https://yourstore.com/checkout-link/?products=123:2,456:1&coupon=SPRING10
For a quick promotion, that may be all you need. Bear in mind that it empties the shopper’s cart before adding anything and sends them straight to checkout. It has no field for your own price either, so the products sell at their store price, less any coupon. WooCommerce documents the format in its guide to sharable checkout URLs.

A cart link for several products at your own price
When the offer is a kit at a price you’ve advertised, or the link should land on the cart and leave the shopper’s other items alone, you need a WooCommerce cart link plugin. In CartPresets you set up the items and their prices once, as a preset, and the plugin gives that preset its own link. By default the link keeps whatever the shopper already had and lands them on the cart page; Settings → Cart behaviour changes either.
Every preset answers to two links, and both open the same preset:
https://yourstore.com/preset/starter-kitis the pretty form. It reads well in an email or on a printed QR code, and it needs pretty permalinks turned on in WordPress.https://yourstore.com/?preset=starter-kitis the query form. It works with any permalink setting, and on a store with plain permalinks it’s the form the plugin gives you everywhere.
The editor shows the pretty form when your store can use it and lists the query form under Also answers to. Tracking tags such as ?utm_source=newsletter carry through either one.
Settle the names before you share: changing the /preset/ base or the preset parameter in Settings → Link settings breaks every link already out there. Renaming one preset is safer, since its old slug keeps working for 30 days. The preset link docs cover both forms.
-
01
Create the preset
Go to Cart Presets → Add New Preset. Type a Name in the Preset details card. The Slug fills in as you type; it’s the part that appears in the link, so “Starter Kit” becomes
starter-kit.The Internal description is for your team. Customers never see it.
-
02
Add the items
In the Items card, click Add store product, search by name or SKU, and click Use product. Repeat for each product in the set.
Each item has its own Quantity. For a variable product, choose every option, such as the colour: a preset has nobody to ask at cart time, so each option needs an answer. The arrows at the start of each row set the order items land in the cart.
-
03
Set the price
Each item carries its own discount: None, Percentage, Fixed amount off or Custom price. The preset’s total is the sum of its lines.
For a kit you’ve advertised at a set price, use Custom price and give each item the price it should carry. The Pricing summary recalculates as you type and shows what the cart will charge.
-
04
Check the health panel
Health checks on the right flags anything that needs a look. A warning will work but may not be what you meant; a check marked Blocks saving has to be fixed first. Click any check to jump to its field.
-
05
Save and share
Click Save preset. The Preset link card fills in with the live URL, for example
https://yourstore.com/preset/starter-kit. Click Copy and put it in an email, a post or a QR code.A preset goes live the moment you save it. To take the link down later, turn off the Link enabled switch at the top of the editor, which acts straight away. To prepare a preset now and sell it later, give it a Starts on date, a CartPresets Pro setting.
-
06
Try it yourself
Open the link in a private window, so you arrive as a customer would. You should land on the cart with every item in it, each marked Part of preset, and a total that matches the editor.
Add to cart link not working?
Most failures come down to the link’s format or the product itself. Find the line that matches what you see:
- Nothing is added and no message appears. The
add-to-cartvalue has to be one product ID that exists. A list, a colon, a SKU or a deleted product’s ID makes WooCommerce skip the link without saying why. - You see “Please choose product options”. The link uses a variable product’s own ID, so swap in the variation’s ID.
- You see “Size is a required field”, or another attribute’s name. The variation is set to “Any” for that attribute, so add it to the link as shown above.
- You see “Sorry, this product cannot be purchased” or an out-of-stock notice. The product needs a price, the Published status and enough stock. A draft still works for you while you’re signed in as an admin, so a link can pass your own test and fail for customers.
- Only the last product arrives. The link repeats
add-to-cartand only one value counts, so use a checkout link or a preset link for several products. - The product goes in twice. The link stays in the address bar, so a refresh runs it again. In WooCommerce → Settings → Products, tick Redirect to the cart page after successful addition and shoppers end up on a clean cart address. The setting covers every Add to cart button as well.
- It works when you test it but not for some customers. A page cache may be answering with a saved copy of the page, so WooCommerce never sees the request. Exclude addresses that contain
add-to-cartfrom the cache, or ask your host to.
Questions about cart links
What’s the difference between a cart link and a checkout link?
A cart link puts products in the cart and lets the shopper look them over or keep browsing. A checkout link fills the cart and opens checkout, ready for payment. A CartPresets link can do either: under Redirect after adding you pick the cart, checkout, the page the shopper came from or an address of your own.
Can the link set a custom price or add a coupon?
WooCommerce’s own links can’t set a price. Its checkout link takes one coupon code, and the add-to-cart URL takes none. A CartPresets link holds the price you set for each item, and CartPresets Pro can apply a coupon automatically when someone follows the link.




