I’ve created an extension to programmatically add coupons that expire in 24 hrs (more or less).
All is working on Community version. My problem is with EE.
Checking the docs it seems that, on EE, the expiration date has been replaced by scheduled updates.
It is actually possible to create a scheduled update programmatically but, as my module is supposed to work for both Communtiy and EE edition, I would probably need to check for schedule update existence before adding the coupon. It is a bit tricky and prone to errors.
Also it seems a waste to add an update for each coupon, as each is usable only once.
My question is… even if not shown in admin UI, are salesrule.start_date and salesrule.end_date still used in EE? if not, is salesrule_coupon.expiration_date field actually used in EE?
I’m not interested that the expiration date is visible into the backend, only that the coupon is no longer valid after the expiration.
Does anyone know the answer?