Magento – way to pass a coupon code as a URL parameter

coupon-codesparametersessionurl

I would like to create URLs which activate a specific coupon. It could be as simple as passing the coupon code as a URL parameter. When a coupon is passed, I'd like it to automatically be populated at time of checkout.

Is there a way to capture a coupon parameter into the session to automatically be applied to the cart?

Best Answer

You can use just the Magento core URL for coupon posting: http://example.com/checkout/cart/couponPost/coupon_code/MY_COUPON_CODE You can also add on ?return_url=http... if you want a specific return url or let it just redirect to the cart by default.

Related Topic