Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/549ca3bcdf51ef19d858cfea6e613bf3 to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/549ca3bcdf51ef19d858cfea6e613bf3 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2: If not show strikeout in Minicart
add_action('woocommerce_before_mini_cart_contents', function (){
if (!WC()->cart->is_empty()){
WC()->cart->calculate_totals();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment