This can be done ...
For example, let's say I do not want a particular Discount Coupon to be used when PayPal Express is selected ...
Editing the file:
/includes/modules/order_total/ot_coupon.php
I can add the code in RED:
Code:
// bof: stop Discount Coupon coupon_id 6 from use when paypal is selected
if ($_SESSION['payment'] == 'paypalwpp' and $coupon_result->fields['coupon_id'] == 6) {
$foundvalid = false;
}
// eof: stop coupon from use when paypal is selected
// remove if fails address validation
if (!$foundvalid) {
where the coupon_id would match the cID you see when editing the Discount Coupon in the URL of you Admin ...
Bookmarks