Last active
November 26, 2021 13:29
-
-
Save AshlinRejo/27b509e2e6ef3fd51debac5413d4e38b to your computer and use it in GitHub Desktop.
Discount rules v2: Get list of used coupon names in discount rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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