Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/817eee0928bad4e71ac0dc2d5594108e to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/817eee0928bad4e71ac0dc2d5594108e to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Check WDR Free shipping is enabled
if ( class_exists('\WDRPro\App\Rules\FreeShipping')) {
// below method return true when wdr free shipping enabled
$wdr_free_shiiping = \WDRPro\App\Rules\FreeShipping::cartHasFreeShipping();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment