Expire on a date rather than number of days?
-
Hi Nate,
In the site I’m building (WooCommerce), I want to prevent customers from getting into the checkout page if their account has expired (they can fill their cart, but not check out).
Expiration corresponds to the date of expiration of a doctor’s recommendation, not a number of days since activation.
To do this I need to have a date picker show up in the administrator’s ‘Users’ page (customer is not allowed to change it). Then, if order date > exp date, I guess I could just put a redirect on the checkout page (with a child theme?) to a info page that explains their recommendation has expired and give the customer our phone number.
… or, I could just lock them out of the site, once they’ve expired, by using your ‘user access expiration’ plugin.
I suppose it wouldn’t be hard to mod your plugin to use a date rather than days till expiration, but I thought maybe you already may have already done something like that.
Thanks,
Mike
- The topic ‘Expire on a date rather than number of days?’ is closed to new replies.