1

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.

Working

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

Working

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....

Does not work

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,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.