Oh, happy day!
You Frank taught me how,
how to watch, How to fight………………….
And living rejoicing everyday…….
I followed yor last recomanded solution:
1. copy the file YOUR_ADMIN/includes/init_includes/init_admin_auth.php into the folder YOUR_ADMIN/includes/init_includes/overrides/
2. in the copied file (not the original) init_admin_auth.php add this code
PHP Code:
if (!isset($_SESSION['admin_id']) && defined('CRON_ADMIN_USER_ID') && (int)CRON_ADMIN_USER_ID != 0) {
$_SESSION['admin_id'] = CRON_ADMIN_USER_ID;
}
right after the line
PHP Code:
if (!defined('IS_ADMIN_FLAG')) die('Illegal Access');
3. delete the file YOUR_ADMIN/includes/init_includes/overrides/init_cron_admin_user_id.php
4. in the file YOUR_ADMIN/auto_store_open_close.php (which I posted above) set
PHP Code:
$store_open = ("10:55:00");// 10:55 am
$store_close = ("21:55:00"); // 09:55 pm
which is 5 minutes before your cron job times.
Everything works as wanted!
Thank you Frank. You have considerable enriched the value of Zen with your plugin.
Sie haben den Wert des ZenCart mit Ihrem Plugin erheblich
angereichert.
I want to share my joy with all who support this wonderfull ZenCart. I'll donate a Cup of coffee.Mihaela


Mihaela
Reply With Quote
