That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
look at this line:
https://github.com/scottcwilson/zenc...xrest.php#L402
this is where the ship date gets set for rates.
if you want to test for saturday delivery, before this line:
https://github.com/scottcwilson/zenc...xrest.php#L375
you can add:
then change line 402 toPHP Code:
$shipDate = new DateTime();
// choose one of the following. only use 1, else you will get 2 weeks out for a date. which should still work...
$shipDate->modify('next friday');
$shipDate->modify('next thursday');
best.PHP Code:
'shipDateStamp' => $shipDate->('Y-m-d'),
Yep, that seems to be how it works.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Please look at the configuration description for this option:
Show Estimated Transit Time
Display the transit time for ground methods?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I see. Thanks for pointing me out. I haven't paid attention to the 2nd line under this option...
So if this option is set to true, transit time for ground and Saturday delivery options are all displayed.
If this option is set to false, transit time for ground and Saturday delivery options are all hidden.
It might be better to split this option into two options instead?
Hi @carlwhat, I just tested your suggested code. Unfortunately, I received the following error:
PHP Parse error: syntax error, unexpected '(', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
I did some study and test. If I changed the last line as your suggested into:
'shipDateStamp' => $shipDate->format('Y-m-d'),
Then it works.
Bookmarks