Page 1 of 1

in checkout show coupons percentage next to coupon code?

Posted: Fri Jan 08, 2021 7:01 pm
by supak111
Is there any way to show show coupons percentage or free shipping if it offer it next to coupon code in the checkout out?

right now checkout looks like this:
Sub-Total: $20.00
USPS Priority + Tracking: $10.00
Coupon (save3): $-5.00
Total: $25.00

Make it do this:
Sub-Total: $20.00
USPS Priority + Tracking: $10.00
Coupon (save3 - 20% OFF & FREE SHIPPING): $-5.00
Total: $25.00

Re: in checkout show coupons percentage next to coupon code?

Posted: Fri Jan 08, 2021 7:28 pm
by paulfeakins
supak111 wrote:
Fri Jan 08, 2021 7:01 pm
Is there any way to show show coupons percentage or free shipping if it offer it next to coupon code in the checkout out?
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

Re: in checkout show coupons percentage next to coupon code?

Posted: Fri Jan 08, 2021 11:07 pm
by Johnathan
The easiest way would be to put it into the coupon title. For example:

Coupon [20% OFF & FREE SHIPPING] (save3)

Just make sure you don't use "(" in the coupon title, since OpenCart does use that to determine what the coupon code is. I haven't ever tested that so it may work, but I'd avoid it just to be safe.

Re: in checkout show coupons percentage next to coupon code?

Posted: Sat Jan 09, 2021 2:40 am
by supak111
Good idea, putting it in the coupon title works fine. I didn't think spaces and things like % sign would even work in the coupons code. Ended up chaining the save3 coupons to: SAVE3 10% OFF and it looks nice, looks like this in the checkout (SAVE3 10% OFF)

Re: in checkout show coupons percentage next to coupon code?

Posted: Sat Jan 09, 2021 11:44 pm
by Johnathan
That works too, glad I could help. The only downside to putting it into the code itself is that there is a limit on how long coupon codes can be. You *might* also run into trouble with that "%" sign because that's used as a wildcard in MySQL queries, but if it seems to work after placing an order with it, then you'll probably be fine.