Can We Also Specify Quantity For Each Product For Multiple Products Using Permalinks?

- 1 answer

So if we want to add a single product to cart in shopify we can specify the quantity For Example -

And if we want to add multiple products to cart we write:[]=123456789&id[]=123456129

So can we specify the quantity for each product? like -[]=123456789&quantiy=2&id[]=123456129&quantity=3

or can we add the same id in the id[] and we could achieve the same thing like -[]=123456789&id[]=123456789

Is this possible?



What you do is change the URL slightly. So instead of cart/add you just use cart.,765432111:2

That will place 3 of one product and 2 of another in the cart and show the customer checkout.

If you just want to put products in the cart, then you just use your pattern with variant ID's and you just let the customer choose quantity in the cart, you don't preload the quantity.