Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/27b509e2e6ef3fd51debac5413d4e38b to your computer and use it in GitHub Desktop.
Save AshlinRejo/27b509e2e6ef3fd51debac5413d4e38b to your computer and use it in GitHub Desktop.
Discount rules v2: Get list of used coupon names in discount rules
if(class_exists('\Wdr\App\Router')){
$manage_discount = \Wdr\App\Router::$manage_discount;
$calculator = $manage_discount::$calculator;
$used_coupons = $calculator::getUsedCoupons();
//$used_coupons -> here you get used coupon names in discount rules as an array
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment