Post by stagosal » Tue Oct 18, 2016 4:25 pm

Hello there i am using Opencart 2.2 here. This method works perfectly but with one problem. I would like the user to click on a popup link and redirect to to the custom link at /index.php?coupon=XXXXX. But unfortunately if no product is in the user's cart the coupon is not applied at checkout. So the user has to have at least one product in his cart and then apply the link for the coupon to be applied. Is there a way for someone to first visit the coupon link, then add products at his cart and then at the checkout the coupon to be applied?
Thank you in advance.

Newbie

Posts

Joined
Mon Mar 28, 2016 10:35 pm

Post by JeremyColvin » Wed Feb 08, 2017 3:38 am

Qphoria wrote:Updated my first post for 2.2.x
Hi there! First, THANK YOU for taking the time to put this fix up here!

Second, I can't seem to get it to work in OpenCart 2.1.0.1 - I don't have a "framework.php" so I tried putting it in the index.php where described, but when I try the URL / coupon it does nothing.

Any thoughts?

Newbie

Posts

Joined
Wed Feb 08, 2017 3:35 am

Post by ritaylo3 » Fri May 12, 2017 11:53 pm

Hi,
I tried adding the 2.2 code in framework.php of 2.3.0.2 and it doesn't work. Does anyone have a solution for 2.3.0.2?
Thanks,
ritaylo3

Newbie

Posts

Joined
Tue May 22, 2012 3:48 am
Who is online

Users browsing this forum: No registered users and 61 guests