Hi!
I selected some products on coupon to have a discount. When someone try to use the coupon on other products doesn’t work, but if any of the products on coupon in on the cart, the discount is applied to all products and not just the select products on coupon.
Super Coupons can do this. It allows you to set all sorts of different rules on coupons, so you can restrict them to individual products, categories, or manufacturers. It works separately from the normal coupon system, so you can use both at the same time if you want.
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 questions.
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 questions.
Following on answer... In catalog/model/total/coupon.php I swapped out
For:
Hope no one else ever has to debug this one!!!
Code: Select all
// If discount greater than total
if ($discount_total > $total) {
$discount_total = $total;
}
Code: Select all
// If discount greater than total
if ($coupon_info['type'] == 'F' && $discount_total > $subtotal) {
$discount_total = $subtotal;
}
Probably this. https://github.com/opencart/opencart/pull/5062
Using $subtotal could cause problems if the coupon has Free Shipping.
Using $subtotal could cause problems if the coupon has Free Shipping.
Who is online
Users browsing this forum: No registered users and 27 guests