Post by supak111 » 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?

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

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by paulfeakins » Fri Jan 08, 2021 7:28 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Johnathan » Fri Jan 08, 2021 11:07 pm

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.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by supak111 » Sat Jan 09, 2021 2:40 am

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)

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by Johnathan » Sat Jan 09, 2021 11:44 pm

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.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: Google [Bot] and 258 guests