How to add multiple items to cart using a URL in Shopify?

How to add multiple items to cart using a URL in Shopify?

Greg33
Tourist
4 0 3

Hello!

We have a webpage, separate from Shopify, to help customers select certain hair care products. When we show the results, we'd like to have an 'Add All to Cart' button that allows the user to click which takes them to the Shopify store with those items in the cart. Following some articles I've found, we have built in logic to build a URL string that should do the trick:

 

https://examplesite.com/cart/add?id=15707697545281&quantity=1&id=15662427865150&quantity=1

 

However, this only adds the second item in the query string and not the first. Is this still possible to do with Shopify?

Thanks!

Greg

Replies 2 (2)

Greg33
Tourist
4 0 3

Bump, still searching for a solution if anyone is aware of how to make this work. 

Thanks.

huynhmaianhkiet
Shopify Partner
21 2 10

Hi Greg,

 

This is the link for you

 

https://examplesite.com/cart/add?id[]=15707697545281&quantity[]=1&id[]=15662427865150&quantity[]=1


I hope it's helpful to you. 

Hura Apps: A Vietnam based Shopify Expert
Hura Theme Blocks: Next Generation Page Builder
AntiCopy: Prevent Content Theft
Hura Product Showcase Builder: Sell Anywhere