Re: Order Delivery Date Support Thread
Was using this mod successfully But no longer works on new IE9 which is now auto updating on peoples computers.
Still works on IE8 and below and firefox.
I think it has something to do with mootools.js
Tried just updating mootools.js but it didnt work (caused another error) so I am assuming there was some changes to the motools script used here.
anyone have a quick fix that I can enter into exixting mootools to make it compliant.
Thanks in advance.
Re: Order Delivery Date Support Thread
After three days of work, I find the solution to work with Explorer 9, looks good and works great with
Google Chrome, if anyone knows how to solve this problem would appreciate the help, sorry if I express myself correctly,
I am using a translator.
Thanks for this contribution
1 Attachment(s)
Re: Order Delivery Date Support Thread
Here is my small contibución, replace file jscript_a-mootools.js, by this that it is working with IE9.
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jagall
Hi just installed this mod a few days ago, using 1.3.9. seems fine. the calendar works but after choosing a delivery date it doesn't appear on any part of the checkout process. it is in the admin side and the email to the customer but not thought it should be on the order confirmation page. probably something I am doing wrong . . . still very new at this
Hi I still haven't got a solution to this one and have gone and uploaded the files again and re-checked them again and again but still no ref to the order delivery date appears in the order confirmation page in the checkout process.
The is that currently it is blocking off two days in advance, but how to you set it that you delivery can be within 24 hrs or 48 hrs.
Please anyone with answers really driving me insane here.
thanks
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
carola
Here is my small contibución, replace file jscript_a-mootools.js, by this that it is working with IE9.
Fabulous. I noticed the same problem and replacing this file did the job. Thanks!
Re: Order Delivery Date Support Thread
Hello everybody,
I have downloaded the ship_order_date__cancel_order_date_1.zip and installed the Ship Date only (with a dropdown). It works great.
I do have a question . I really would like to have this mod appear on the step 2 of 3 page (Payment Method) in stead of step 1 of 3 page. Because i set up ZC to skip the shipping page.
My actions: I copy/pasted the everyting between the <!-- Bof Ship Date --> and <!-- Eof Ship Date --> from tpl_checkout_shipping_default.php totpl_checkout_payment_default.php.
The result: It displays the dropdown in step 2 of 3 and it works.
The problem: In the admin page the date is 11/30/1999 00:00:00
The question: How can i fix the problem
Thanks
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jagall
Hi I still haven't got a solution to this one and have gone and uploaded the files again and re-checked them again and again but still no ref to the order delivery date appears in the order confirmation page in the checkout process.
The is that currently it is blocking off two days in advance, but how to you set it that you delivery can be within 24 hrs or 48 hrs.
Please anyone with answers really driving me insane here.
thanks
Solved:Well this is working fine now, installed the new update and thanks to that Software Guy as I am guessing the bug was the problem I had above, GREAT!:clap:
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
I just wrote some code for ya - Open up /includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping_default.php
Find this code (it's near the bottom):
Code:
<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<select name="order_delivery_date">
<?php
for ($i=0, $n=50; $i < $n; $i++) {
$now[$i] = strtotime ("+$i day", time());
if ( strftime ("%w",$now[$i])<>0
AND strftime ("%m-%d",$now[$i])<>"12-25"
AND strftime ("%m-%d",$now[$i])<>"12-26"
AND strftime ("%m-%d",$now[$i])<>"01-01"
){
echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
}
}
?>
</select>
</fieldset>
<!-- Eof Ship Date -->
And replace it with this:
Code:
<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<select name="order_delivery_date">
<?php
$current_time = (date("h:ia"));
$current_hour = (date("H")); // 24 hour time as two digits
$begin_cutoff_hour = '10'; // set on a 24 hour time clock
$end_cutoff_hour = '19'; // set on a 24 basis - "19" would be 7pm
$time_zone_adjust = '0'; // use this to adjust your hour value forward or backwards
$display_current_time = false; // Chage to "true" to check your system time for adjustments to $time_zone_adjust. Result will be echo'd to browser below ship date dropdown menu
$current_adjusted_hour = ($current_hour + $time_zone_adjust);
if($current_adjusted_hour <= $begin_cutoff_hour) {
$date_offset = '0';
}
else {
$date_offset = '1';
}
for ($i=$date_offset, $n=50; $i < $n; $i++) {
$now[$i] = strtotime ("+$i day", time());
if ( strftime ("%w",$now[$i])<>0
AND strftime ("%m-%d",$now[$i])<>"12-25"
AND strftime ("%m-%d",$now[$i])<>"12-26"
AND strftime ("%m-%d",$now[$i])<>"01-01"
){
echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
}
}
?>
</select>
</fieldset>
<?PHP
if ($display_current_time == true) {
echo "YOUR SYSTEM TIME IS $current_time";
}
?>
<!-- Eof Ship Date -->
Change $display_current_time to true to see if the time output by the server/browser matches your time zone, and then adjust $time_zone_adjust as needed.
Let me know if this works for ya..
I know this mod has been updated since this post but just wondering whether there was anyway around setting cut-off time for ordering e.g. if order place before 10am then delivery is 24hrs from then if after 10am is 48 hrs. hopefully someone has some ideas on this thanks :D
Re: Order Delivery Date Support Thread
I have tried installing Carola's mootools fix but am still unable to see the calendar in IE9, and worse the empty box that does display does not allow text to be inserted. I assume this could be a conflict with other jscripts, but would really like to know if there is likely to be a mod upgrade or fix that does work coming out?
It displays fine in IE8 and earlier, but not in IE9 which according to my stats more and more people have upgraded too.
If there is a way of making the default text box accessible if the date picker is not working I would appreciate knowing what to turn on or off.
I won't say what I think about IE9, but this is a great tool in Chrome, FF and older IE browsers (and you can't say that often).
Re: Order Delivery Date Support Thread
Hi All
I am using this mod with 1.3.9h and if a customer does not select a delivery date I get Tuesday 30 November, 1999 this as the date on the invoice. Any ideas anybody. thought perhaps I may not have my localtime set up properly???:huh: