Skip to content

Instantly share code, notes, and snippets.

@sarangs07
Last active March 9, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarangs07/c460a598b68f59cfbc7045037c7f9ecc to your computer and use it in GitHub Desktop.
Save sarangs07/c460a598b68f59cfbc7045037c7f9ecc to your computer and use it in GitHub Desktop.
Filter to hide/show Coupons on CartFlows page
/*
* Code installation instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
/* Filter to hide/show on CartFlows page */
add_filter( 'cartflows_show_coupon_field', 'br_hide_coupon_field' );
function br_hide_coupon_field(){
return false;
}
/* Filter to hide/show on CartFlows page */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment