I can’t figure out why this code doesn’t work.
( placed in events.js )
export function wixMarketing_onCouponCreated(event) {
console.log('whatever')
}
It seems to work well before. But stopped one day or idk.
Just tried to run event with wixStores_onCartCreated(event). and it works just fine. Looking the console in Site Events logs.
But Coupon events don’t work for me anymore.
You can try on any site you have. Just 3 strings of the code. And let me know if you was able get it to work.
I’m creating the coupons on the live site using front+back end as well as creating the coupons using the WIX dashboard. Both ways don’t give any results…
@Ahmad, @Yisrael (Wix), someone please
#events.js
#wixMarketing_onCouponCreated