New Shopify Certification now available: Liquid Storefronts for Theme Developers

Discounts and Cart - Use permalinks to apply a discount and pre-load the cart

andres9722
Visitor
1 0 0

Hello, we are creating a link to apply a discount and then redirect the user to the cart and add 2 products, but we are having a problem because it is adding just 1 product.

Do you have an idea how to solve that? thank you

this is the url: 

 

 

 

your-store/discount/FREECODE?redirect=/cart/add?id[]=VARIANT1ID&quantity=1&id[]=VARIANT2ID&quantity=1

 

 

 

 

Replies 0 (0)