Created
February 2, 2019 13:35
-
-
Save raulfmiranda/9b5206dba7dcc1d629f93379b3b4c936 to your computer and use it in GitHub Desktop.
PEGA UM CUPOM CODE
This file contains 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
function getCouponCode() { | |
var CouponMgr = require('dw/campaign/CouponMgr'); | |
var coupon = CouponMgr.getCoupon('newsletter20off'); | |
var couponCode = coupon.getNextCouponCode(); | |
return couponCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment