Post by askdziner » Mon Mar 19, 2018 7:03 pm

Hello Members
I need a help, i want to give Coupon code to my Customer, but i want that code only works on the actual price of the product not on the Discounted/Special price, because some of my product are on SALE

thanks

Newbie

Posts

Joined
Mon Mar 19, 2018 7:01 pm

Post by straightlight » Wed Mar 21, 2018 5:55 am

You would need to edit your catalog/model/extension/total/coupon.php file where all instances of:

Code: Select all

$coupon_info['discount'] 
would be used in order to change the discount key to your actual array price key, in this case, located from the getCoupon method of that file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Johnathan » Fri Mar 23, 2018 12:55 am

Super Coupons can do this. You use a Rule like this, and any discount would be on the original price ignoring Discount and Special prices:

Rule: Product is Product A
Rule: Total Value = Pre-Discounted Sub-Total

Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 98 guests