Exclude MIL- prefixed coupons while remove other cart coupons
Exclude coupons prefixed with "MIL-" while removing other cart coupons.
add_filter('advanced_woo_discount_rules_exclude_coupon_while_remove_third_party_coupon', function($status, $coupon_code) {
if (strpos(strtolower($coupon_code), 'mil-') !== false) {
$status = true;
}
return $status;
}, 100, 2);PreviousTo load brand taxonomies in rule filter when if is not loadsNextApply discounts only for a specific products which has custom field data (meta)
Last updated