I have a site on opencart, and I have this on step 4 (delivery method);
Interlink Express 24 Courier
- Interlink Express - Get it on: Wednesday, 13th of August
I already have a code, but it does not seem to work, on Saturdays it still seems to display Sunday as the delivery date.
<?php
// Text
$_['text_title'] = 'Interlink Express 24 Courier';
$datetime = new DateTime('tomorrow');
if ($datetime->format('l') == 'Sunday') $datetime = new DateTime('tomorrow + 1 day');
$_['text_description'] = 'Interlink Express - Get it on: ' . $datetime->format('l, jS \of F ');
$_['text_weight'] = 'Weight:';
$_['text_insurance'] = 'Insured upto:';
$_['text_time'] = 'Estimated Time: Within 24 Hours';
?>
Also, is it possible to make it display the next date after a certain time (5:00pm) ?
So on a Monday at 5:01 it displays Wednesday instead of Tuesday.