Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/62138bcc8f192e978016153c1be4b50c to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/62138bcc8f192e978016153c1be4b50c to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Disable coupon discount rules will work (Translation conflict resolve)
add_filter('advanced_woo_discount_rules_notice_on_remove_coupon_while_having_a_discount', function( $msg, $coupon_code){
return sprintf(__('Sorry, it is not possible to apply coupon "%s" as you already have a discount applied in cart.', 'woo-discount-rules'), $coupon_code);
},10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment