cancel
Showing results for 
Search instead for 
Did you mean: 

Query string to add product and apply promo code

Query string to add product and apply promo code

Good Afternoon,

 

I currently have set up a query string that automatically adds a set amount of products to the users cart when they click a specific button.  I already have everything set with with the FormKey() and this is working as expected.

 

Example

http://domain.com/checkout/cart/add/product/13/qty/6/

 

I can also in an entirely different URL apply a specific promo code to the shopping cart

http://domain.com/checkout/cart/couponPost/coupon_code/PROMOCODE/

 

However, I am unable to do both at the same time.  I would like to build one URL that adds specific products to the users cart and then applies the promotional code.  I would expect this URL to work....

 

http://domain.com/checkout/cart/add/product/13/qty/6/couponPost/coupon_code/PROMOCODE/

 

But it does not.  Is there any way to accomplish what I am looking for?

 

Thanks,