[How many days in future should we start on pane?:
Select first day your customer can choose, 0 = today, 1 = tomorrow, etc.]

Here(above section of your module) can we select that after 14 p.m. automatically the date will be
changed to tomorrow's timeslot otherwise the date will be today. (if I select 0=today )

Example:
Today is Aug 27. [I choose 0=today option.] and it is showing in the
check out page:

Saturday 27 August
Sunday 28 August
........................................
..........................................
like that

but when today the server clock will reach at 14 p.m. at that time when
the user will order then the date will be showing automatically on the
checkout page liek below....
Sunday 28 August
Monday 29 August
.......................................
........................................
like that..

easy ques: after 14 p.m. tables date will be start from next day.
Thanks for your help. Looking forward to your reply.

Comments

Yuki’s picture

anybody plsssssssssss

Yuki’s picture

Can we add time slot in here/below section:
Location: /admin/store/settings/checkout/edit/panes
--------------------------------------------------------
Section name: How many days in future should we start on pane?:
If I select 0=today then it will show hour list of today then selct from which hour it will start?
13/14/15/16 p.m etc.

If I select 14 p.m. then when the server clock reach at 14 p.m. at that time the deleivery list date date will be showing from day after tomorrow.

Say: Today is Sept 6
Until 1:59 p.m. the Delivery timeslot table will show from like below
Sept 7
Sept 8
.........
........

When the clock reach at 14 p.m. then the date will start from

Sept 8
Sept 9
Sept 10
.............
..........

Like that.
Can you please help me?

Yuki’s picture

Title: delevery date rescheduled automatically showing after 14 p.m. or after certain time how to? » Delivery date rescheduled automatically showing after 14 p.m. or after certain time how to?

Another thoughts:
After 14 p.m. today

"How many days in future should we start on pane? " would be 2 (meaning in check out pane the dates will start after 2 days)

and when the server clock will reach at 12 p.m. (midnight)
at that time

How many days in future should we start on pane? would be 1 automatically?

Can we do this kinds of settings change (with cron or may be without cron) and without doing it manually?

Yuki’s picture

anybody :((( pls give me hints...

lesliewu’s picture

Hi Yuki,

Did you manage to get it to work? I am looking for a similar feature.

I want my customers to qualify for next day delivery only if they order before a certain time on the previous day, say 5pm, instead of 12am by default.

It would be even nicer if the admin can choose this "last order time" in the admin pane.

Yuki’s picture

nope

lesliewu’s picture

Hi Yuki,

This is my quick and dirty hack. It is working fine on my site.

You will have to change 17 to 14. Hope this helps.

function _uc_deliverytimeslot_date($date, $day = 0) {

$offset = (date("H") >=17) ? 1 : 0;

if (is_array($date) && isset($date['day'])) {
$output = mktime(0, 0, 0, $date['month'], $date['day'] + $day + $offset, $date['year']);
}
elseif ($date) {
$output = array('day' => date("d", $date), 'month' => date("m", $date), 'year' => date("Y", $date));
}
else {
$output = mktime(0, 0, 0, date("m"), date("d") + $day + $offset, date("Y"));
}
return $output;
}

veshiyi2003’s picture

How to make, rescheduled automatically showing:
1. Delivery for the evening is only available when ordering up to 18 hours
2. After 18 p.m. tables date will be start from next day.
3. Delivery on the morning of the next day available only when ordering up to 23.59 hours













Monday
3 October
Tuesday
4 October
13.00-17.00 X *
20.00-23.00 * *
n/a 0 yes * no x

for example now Monday 3 October 10.00 hours.