Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/6ed643dc435748af274b4397e1866fab to your computer and use it in GitHub Desktop.
Save AshlinRejo/6ed643dc435748af274b4397e1866fab to your computer and use it in GitHub Desktop.
Discount rule v2: Fix for displaying applied message on match free shipping
add_action('woocommerce_before_cart', function(){
if(class_exists('\Wdr\App\Controllers\DiscountCalculator')){
\Wdr\App\Controllers\DiscountCalculator::getFreeshippingMethod();
}
}, 9);
@AshlinRejo
Copy link
Author

This included in plugin from v2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment