Thanks for this, mc! I have added it to my test site and have scheduled a disabled product, I will report back tomorrow with results but looks like it should go without a hitch.
Just to clarify some of the code. In the includes/init_includes/init_special_funcs_disabled_upcoming.php, my file includes also this code:
Should I keep that or is it redundant with the rest?Code:/* Do not want to affect the way that other code that follows uses $_SESSION['today_is'] if (!isset($_SESSION['today_is'])) { $_SESSION['today_is'] = date('Y-m-d'); } if ($_SESSION['today_is'] != date('Y-m-d')) { $_SESSION['today_is'] = date('Y-m-d'); $_SESSION['updateExpirations_upcoming'] = false; } */
That code is commented out (per earlier correction) and serves no purpose at this point.
It can be removed.
Initially I thought it was needed/would help, but then realized that it would actually get in the way of the other features like specials, sales, upcoming product, etc...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Works just as expected! Awesome, simple and effective, thanks so much, mc!! Perfect for setting up all sorts. I am going to look to extend this to ezpages for promotional pages. We can set everything up in advance and just schedule releases. Very, very helpful.
I am happy to report that it worked perfectly.
Now, if there is any update as in a way to set the TIME too, I will add it. But for now, it is already a great tool.
Thank you!
Bookmarks