-
Re: Order Delivery Date Support Thread
Awesome mod.
Let's say I ONLY want the delivery date option to show up when a customer selects delivery (i.e. somehow I'd like to tie it to a shipping option, becuase that delivery shipping option only shows up when they are in the right location for delivery. Can anyone point me in the right direction to make that happen?
Thanks.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
KyLi,
You're loading Mootools twice -- the first time in the head tag that it loads is where it's supposed to be for the delivery date mod to function. This is all good:
HTML Code:
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_a-mootools.js"></script>
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_b-calendar.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() { myCal = new Calendar({ date: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); });
</script>
But further down in your head tag you also have this:
HTML Code:
<script type="text/javascript" src="js/mootools.js"></script>
The reason that the order delivery date has "a" and "b" in those two JS files is because if mootools loads after calendar.js it will not work. I suspect that that might be the problem.
I have been using Zen-Cart for a few months now. I installed this module and cannot get it to work correctly:
Here is my issue (it is similar to above):
I can see the date field (a white bar) and the icon with the calendar on it, but I cannot manually input a date or get the icon to work.
When I hover over the icon I get the white hand to show it is a 'link' but nothing happens.
I have read the module instructions and this thread, but I cannot find a solutions.
If anyone can help I would appreciate it.
my site is www.YourEngravingSolution.com... if you create a dummy order to see how this works, please put a comment in the order that this is a test or something.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jmarion
I have been using Zen-Cart for a few months now. I installed this module and cannot get it to work correctly:
Here is my issue (it is similar to above):
I can see the date field (a white bar) and the icon with the calendar on it, but I cannot manually input a date or get the icon to work.
When I hover over the icon I get the white hand to show it is a 'link' but nothing happens.
I have read the module instructions and this thread, but I cannot find a solutions.
If anyone can help I would appreciate it.
my site is
www.YourEngravingSolution.com... if you create a dummy order to see how this works, please put a comment in the order that this is a test or something.
I was able to solve the above problem...
I do not know the detials, but I installed and then uninstalled attribute module to allow products quantities by attribute. I did not need the module so I uninstalled it, but in doing this process i modifiy my header_php.php in my checkout_shipping folder and it caused the calendar to work.
thanks
-
Re: Order Delivery Date Support Thread
Hi I am using this mod and it is working very nicely, thank you. However I was wondering if there is a way to make it so my customers are only able to select up to a week after today's date.
Thank you for any help.
Jordan
-
Re: Order Delivery Date Support Thread
The only change I've had to apply to this so far is to the admin pages (order.php/invoice.php/packingslip.php) to handle orders where the customer hasnt selected a delivery date.
Wherever the delivery date is displayed (e.g. echo zen_date_long($order->info['order_delivery_date']))
I've changed to:
if ($order->info['order_delivery_date']=='0000-00-00' || strlen($order->info['order_delivery_date'])==0) echo "Not Entered"; else echo zen_date_long($order->info['order_delivery_date']);
-
Re: Order Delivery Date Support Thread
Is there any way to have the orders in the super orders admin sort by delivery date? Would love to be able to see the delivery dates instead of date ordered so that we can easily see when we need to ship something out without going into each order separately....Thanks!
-
Re: Order Delivery Date Support Thread
I have been trying to get this mod going i installed the correct files but keep gettting this error after i put in the SQL file..
1146 Table 'sendamar_zc7.zen_zen_orders' doesn't exist
in:
[show fields from zen_zen_orders]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
please help
message me thanks
-
Re: Order Delivery Date Support Thread
Hello I am Zen Newb. Version of ZC is up to date. When my customers do not select a desired delivery date when they check out on the invoice and packing slip it reads November 30, 1999. Is there a fix for this that anyone knows about?
Example:
Date Ordered: Wednesday 24 February, 2010
Desired Delivery Date: Tuesday 30 November, 1999
Payment Method: PayPal
Thanks!
-
Re: Order Delivery Date Support Thread
Been running this mod for awhile, really like it. Is there a way to disable next day if it is after 12pm?
Or, on Sat or Sun, disable Monday as a delivery date?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Promogator
I have been trying to get this mod going i installed the correct files but keep gettting this error after i put in the SQL file..
1146 Table 'sendamar_zc7.zen_zen_orders' doesn't exist
in:
[show fields from zen_zen_orders]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
please help
message me thanks
in de sql query delete the first zen_
That should do the trick.
-
Re: Order Delivery Date Support Thread
any update on the "Desired Delivery Date: Tuesday 30 November, 1999" issue, when date is not selected?
-
Re: Order Delivery Date Support Thread
Does anyone have this working with Super Orders? I got the customer end working, and I tried to edit admin/super_orders.php but it is totally different then orders.php and obviously I did something wrong. In the admin, when I go to Customers-Super Orders, it gives this error:
Parse error: syntax error, unexpected '}' in /home/***/super_orders.php on line 1190
I tried playing around with that file more, but no luck, I just get errors. I know I must be missing something in the super_orders.php file, but I just don't know what. This is on a 1.3.9d store with the latest version of Super Orders.
If anyone has any suggestions I would appreciate it!
Thanks!
-
Re: Order Delivery Date Support Thread
Forgot to mention that if I don't edit the super_orders.php file at all, I get a blank page when I visit Customers-Super Orders.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
Your database probably doesn't have the "zen_" prefix on each table.
Try the attached SQL file..
Many thanks. That helped me too.
Cheers,
Kim
-
Re: Order Delivery Date Support Thread
Does anyone know how to make "Order Delivery Date" and "Gift Wrapping" work together. Each of them work perfectly on their own. However, together only the last installed of them will work.
I have tried divani's various order.php files on
http://www.zen-cart.com/forum/showth...elivery&page=6
but it hasn't solved my problem.
I'm selling chocolate truffles so it would be very usefull to have both add-ons working at the same time.
Any help will be greatly appreciated.
-
Re: Order Delivery Date Support Thread
Does anyone know how I can block same day order is received (if its one of the delivery days)
currently I have blocked Sat. Sun. so if someone orders on say Monday-then their first available delivery day is Tuesday
thanks in advance
-
Re: Order Delivery Date Support Thread
['24-25,31 12 *', '0 * * 0,6']
What needs to be edited to make this calendar block same day delivery?
thanks
-
Re: Order Delivery Date Support Thread
I am in the process of porting this module to 1.3.9 and will post the update to the Free Software Add Ons sometime this week.
1.3.8 users, please note: there is a bug in admin/orders.php - line 99 needs to have order_delivery_date added to the list of fields.
Scott
-
Re: Order Delivery Date Support Thread
The new version is now available in the Free Software Add Ons area.
-
Re: Order Delivery Date Support Thread
I got a problem with the header.php.php file. It's not liking the way the delivery date session is introduced.
[25-Sep-2010 16:41:58] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wedflow/public_html/includes/modules/pages/checkout_shipping/header_php.php:176) in /home/wedflow/public_html/includes/functions/functions_general.php on line 45
And checkout shipping does not pass the shipping fee on to the payment page.
I'm also seeing the ot tax line show up on the payment payment page where there should be nothing showing at all. the tax is 0 and there's no description so something else may be wrong.
Anybody got the newest version working with 1.3.9f?
-
Re: Order Delivery Date Support Thread
Based on the line numbers you're citing it sounds like you used the 138 versions of the files on a 139 cart - possible?
-
Re: Order Delivery Date Support Thread
well that was interesting. Goes to show anything's possible when in a hurry. It's a hacked cart I'm pulling over to new hosting and upgrading at the same time. Old files and mods done by someone who should have kept his fingers off of zen cart completely.
So now to figure out why in the that tax line is showing like it is.
Thanks for being like me and spending inordinate amounts of time on the forum. You saved my bacon with that one, Scott.
-
Re: Order Delivery Date Support Thread
Sorry to be such a dill but I'm new too Zen cart. Though not new to this sort of thing at all. The sql query was no problem at all.
I have read your readme file and the instruction "upload to your install" is not too clear. Where in my install? I'm sure experienced users will know exactly where these things go, I don't. I've search high and low in FAQs and can't find any guidelines to installing addons.
Hope you can help with this very simple question.
Cheers
Donethat
-
Re: Order Delivery Date Support Thread
ftp to your web host. Your install directory will be where the "includes" and "email" and hopefully renamed "admin" directories reside. This may be under /public_html or it may be at the top level where your ftp client winds up going to.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
swguy
ftp to your web host. Your install directory will be where the "includes" and "email" and hopefully renamed "admin" directories reside. This may be under /public_html or it may be at the top level where your ftp client winds up going to.
Thanks, I should have got that sussed for myself.
Secondly are there any configurables in the admin control panel or do I need to make any changes in the files?
-
Re: Order Delivery Date Support Thread
Greetings,
This module works great so thanks for that. I have something I'd like to fix on it and asking if anyone knows what i should do.
I've modified the code tpl_checkout_shipping_default.php according to some code provided earlier in this thread to revert it from using the popup calendar to the dropdown box showing month/day/year. No Problem there, it prints the correct date to customer and also to admin.
The thing I'd like to fix is:
The dropdown box has a default of todays date. If a person doesn't pick a date then they get the default of todays date. Obviously we cannot ship the product they ordered today so they receive it today. But I cannot have it default to tomorrow or another day ahead of time as that too would be erroneous for our type of business. So I would like the default of the dropdown box to be blank somehow or preferably to have wording such as: No Date Selected.
One other thing. When the customer looks in their account and looks at their order, desired delivery date doesn't appear. Anyway to make it show up in the order stored in their account.
-
Re: Order Delivery Date Support Thread
I read several posts, but didn't have the patience to read 23 pages of them. :no:
Does this module allow admin to filter out certain days of the week? Can you turn off individual days? (For a florist that gets overbooked or needs to turn off certain holidays.)
Is it possible to have different date filters depending on what shipping module is selected?
-
Re: Order Delivery Date Support Thread
The answer is yes. I happen to be using this on a wholesale florist site now.
-
Re: Order Delivery Date Support Thread
I think I'll download it and give it a try then.
THX!
-
changing default date
I am using this module but rather than the java calendar am using as the dropdown box for order delivery date. The drop down shows the default of todays date. I'd like to have todays date removed and instead replaced with "Select delivery date". How can I do this?
-
Re: Order Delivery Date Support Thread
HI
Tried the contribution and it worked really well. This was only after I removed mootools from the JS directory which was being used by slimbox. Now slimbox does not work!!
Is there a way to get around this? Since I would like to use slimbox as well
Any help will be much appreciated
-
Re: Order Delivery Date Support Thread
When a customer does not enter a Desired Delivery Date, "November 30, 1999" always prints on the invoices. I read the entire thread, and it appeared that the solution was to reinstall the module, which I did. The result: still getting a default of November 30 :(
When I ran the sql patch to start the install it gave an error saying that the table already existed. If this is the case, how do I remove it and reinstall? And if I do that, won't I lose every prior shipping date? Is there a way to just make the date not print if it is less than today?
Thank you for your help.
Mike
Zen version 1.3.8a (we'll upgrade after the holidays)
On a Linux server in a secure location, somewhere in the swamps of Florida, I think. They won't tell me.
-
Re: Order Delivery Date Support Thread
I need help !!!
I see all saying this is a great contribution, it's really important for me but I can't see the calendar, only the fields blank and protected
Can someone help me
It's urgent!!!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
NINIJJ
I need help !!!
I see all saying this is a great contribution, it's really important for me but I can't see the calendar, only the fields blank and protected
Can someone help me
It's urgent!!!
NINIJJ,
I just went to your site as per the link in the private message, and it seems you have a PHP error when anything is added to the shopping cart. I only get a white screen, so currently i cannot look at the code on your checkout pages.
Let's keep the convo on the forum pages here so that other users can benefit from the process of fixing your checkout. :smile:
-
Re: Order Delivery Date Support Thread
And a note to everyone else:
There is a LOT happening on the real right life front, but I'm going to do my best to come full circle and help you guys out. I know how frustrating this stuff can be. Unfortunately it's time consuming and brings in no dough to help me live. Cue next paragraph...
I wound up spending a lot of time for the past year-ish completely focused on Magento to bring in some dough and make ends meet. Soon after, my attention to ZC seriously waned after it became clear that the ZC team was having (and still is having) big delays (on the order of years) with the release of the next major version. http://www.zen-cart.com/forum/showth...16019&page=148 (i believe you need to be logged in to view this 148 page thread that was frozen in February 2010 regarding ZC 2.0. Note that it was created in Dec. 2008) However, as I'm sure you've noticed, they have recently started pumping out lots of bugfix updates and it seems things are starting to pick up steam again. (Exciting news.)
Regards,
Meech
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
zalimk
HI
Tried the contribution and it worked really well. This was only after I removed mootools from the JS directory which was being used by slimbox. Now slimbox does not work!!
Is there a way to get around this? Since I would like to use slimbox as well
Any help will be much appreciated
As you've already discovered, this is a simple case of javascript libraries conflicting with one another. I'm guessing you're only using slimbox elsewhere on your site (product pages, catalog, etc..) but not on the checkout... so to point you in the right direction, what you could try is locating the code for where mootools is being inserted into your header, and put an IF statement around it. So, essentially something like, "IF the page is NOT a checkout page, load mootools"
-
Re: Order Delivery Date Support Thread
I don't know if this will help but after a problem in Order Delivery date, I knew there were a conflit in Javascript
As I use a Jquery Tempklate and Lightbox 1.5 I decide to start from scratch
I install the order delivery date => ok
I install lightbox 1.5 => ok
Now when I install my Jquery Order delivery still work but not lighbox
SO I need investigation on this
Thanks
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
NINIJJ
...
I install the order delivery date => ok
I install lightbox 1.5 => ok
Now when I install my Jquery Order delivery still work but not lighbox
...
Please read my response just before your post (#236) regarding conflicting JS libraries and hopefully that will point you in the right direction.
-
Re: Order Delivery Date Support Thread
Hello
I'm not sure to understand what you mean by my post #236
Please explain
Now the delivery date is installed and after personnalization I'm only getting 31/11/1999 00:00:00 as input in the field
I know this was already discuss but looking in the forum is not easy
So my remain problems are
1/ the JScript issue
2/ The 30/11/1999 input
3/ I would like to implement
a time field after date (I tried with the time field I see on the forum) it was working but nothing in the DB (maybe because I didn't add the right field)
add the field value in Order confirmation and emails
if nothing is entered defalut date should be the tomorrow (except if weekend)
Thanks for you help
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
NINIJJ
Hello
I'm not sure to understand what you mean by my post #236
Please explain...
In the top right corner of each reply you will find a number.
-
Re: Order Delivery Date Support Thread
ok I abandon the Jquery and move to a Flash so no issue any more
I fixed the 1999 issue
So I Just need now the time zone (AM or PM) and add this fields in order details, invoice and emails
Thanks
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
zalimk
HI
Tried the contribution and it worked really well. This was only after I removed mootools from the JS directory which was being used by slimbox. Now slimbox does not work!!
Is there a way to get around this? Since I would like to use slimbox as well
Any help will be much appreciated
Quote:
Originally Posted by
mrmeech
As you've already discovered, this is a simple case of javascript libraries conflicting with one another. I'm guessing you're only using slimbox elsewhere on your site (product pages, catalog, etc..) but not on the checkout... so to point you in the right direction, what you could try is locating the code for where mootools is being inserted into your header, and put an IF statement around it. So, essentially something like, "IF the page is NOT a checkout page, load mootools"
Hello.
This is my first post and thank you for your great contribution!:laugh:
I found a simple way to use mootools with this.
http://www.zen-cart.com/wiki/index.p...s_-_Javascript
I renamed mootools.js to jscript_mootools.js and uploaded to "includes/modules/pages/product_info/" (because I need mootools.js only product_info page).
-
Re: Order Delivery Date Support Thread
Hi MrMeech,
Very much appreciate all the work you have done for the Zen-Cart community. You are truly a legend.
I have an issue that after reading all the pages on this forum many have but it hasn't been definatively answered.
In the confirmation email that a customer receives the desired delivery date is Y-M-D (year-month-date). The JS calender script also uses Y-M-D, but if you change it to D-M-Y then it adds an incorrect entry into the database, however, the confirmation email they receive becomes D-M-Y. I looked through the order.php in hopes I could add a (date_format_long), but can't get it to present properly (mainly as I don't really know what I'm doing). If desired date was in the same format as order date (ie. 16th December 2010) that would be wonderful. Your help is greatly appreciated.
Many thanks,
The Bagwan
-
Re: Order Delivery Date Support Thread
Hello MrMeech
I have the order delivery date contribution installed and working very well,thanks for your efforts.
I have the cut off for next day delivery set to 7pm,but unfortunately some people are ignoring this and ordering up to midnight for next day-is it possible to configure the contribution so that at 7PM the next delivery date becomes the following day,rather than next day?
Thanks in advance
-
Re: Order Delivery Date Support Thread
I dont get a display on the order confirmation page only in adimin.
at the end of includes/languages/english/CUSTOM
in checkout_confirmation.php reads the following
// BEGIN Order Delivery Date
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date');
// END Order Delivery Date
but nothing shows up
Anyone know how to fix?
-
Re: Order Delivery Date Support Thread
I have installed the mod to my site and everything went well I see the calendar and have set the days for delivery. When I test the mod and go through the checkout process I do not see the date being applied at checkout or do I see it in the admin after order has been made.
I am using zen cart version 1.3.9h
with the following mods
Super Orders
TY Package Tracker
Zen Light Box
Hover Box 3
Tabbed Products Pro
I have also setup on my test server a basic non-modded zen cart using version 1.3.9h and the results are the same I see the calendar, pick the date but no indication of the date during checkout or in the admin after the order has been placed.
I have gone back several times re-uploaded all files ported for the 1.3.9 and I am confused as to why?
Any help or suggestions would be greatly appreciated!
Thanks!!
Site link
My-Chef.org Kitchen
-
Re: Order Delivery Date Support Thread
Ok I have it figured out after looking in my database tables and reviewing the files.
I had to add the query for the Delivery Date to Super Orders, tested it and Bingo it shows up in the Super Orders admin. Now to finish the rest.
-
Re: Order Delivery Date Support Thread
Hello
I've a new issue and I don't know how to fix
I'm using the module from 2 month and never realize that from a certain date the sytem doesn't respond as normal
on checkout confirmation the date is written "friday october 2002"
I don't know why and looking the DB in the field of orderdelivery date it's all to 00 00 00
how to see what's going on?
I've some order with date in DB
but the date in email confirmation is correct
Thanks
NINI JJ
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
WHOSYOURDADDY
Ok I have it figured out after looking in my database tables and reviewing the files.
I had to add the query for the Delivery Date to Super Orders, tested it and Bingo it shows up in the Super Orders admin. Now to finish the rest.
I am having the same issue.
How do you add the query for the delivery date to Super Orders ?
thks
A
zen_cart139h
-
Re: Order Delivery Date Support Thread
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
-
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:
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
This module had been working successfully for me up until this week when it has now stopped being available for the current day and next 3 days. I have it set to only block Sundays, Xmas Day, Boxing Day and New Years Eve as shown here { blocked: ['25-26,31 12 *', '0 * * 0'], direction: 3, draggable: false } but for some reason all of this week is blocked. Several clients are trying to order flowers for same day delivery but can't. I thought it may relate to a Labour Weekend holiday, but do not have it set for this.
I have attached a photo of my problem - blue dates are active and red unavailable and as you can see the 19th, 20th and 21st are all unavailable to select. Currently it is the 19th in my local New Zealand time.
I would appreciate any help as to where to look for problems.
-
Re: Order Delivery Date Support Thread
I have not implemented as yet, but I have a bakery so this is exactly what the doctor ordered. The question I have is how does this work in conjunction with the shipping selections. If a customer selects a certain date how will the shipping be calculated? Weight + Dimensions of Box + (Normaly 2 day or Next Day). How would this now work?
I have some products that require overnight and some that can tolerate two days in transist? Any suggestions?
-
Re: Order Delivery Date Support Thread
I was having the same issue as other people with regards to the order date picker not working in IE9 ......
The fix that was issues a few posts back, by changing some bits in the mootools file ...... this is fine and fixes it for IE9, but it will then make it not work in Firefox, and it will not work correctly in Chrome (it will move you onto the next page if you click the calendar icon!)
The way we have got around it, is to force IE9 to behave like IE8 .....
To do this you need to add the following code into your html_header.php file (includes/templates/your_template/common/html_header.php)
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
This needs to to be the first tag within the <head> tag ....... even before the <title> tag!
This will then make IE9 behave like IE8 and your calendar should then work as it used to!
:) hope this is of help to someone!
-
Re: Order Delivery Date Support Thread
Date picker, nor working for IE,,
-
Re: Order Delivery Date Support Thread
Any chance someone could comment on this working with 1.3.9h?
I am using "pure green free" template, so is there any quirks with using this mod in this template?
I need the Date AND Time version of this.
-
Re: Order Delivery Date Support Thread
Current version v1.3.9e
Can you advise if this module is compatablie with v1.3.9e
Zen Cart™ Version: v1.3.9
Version: 2.3.1
Last Updated: Jul 04 2011
Author: That Software Guy
-
Re: Order Delivery Date Support Thread
I got this mode working in version 1.5.0. I also applied the fix suggested by "Ooba_Scott". So not this seems to be working in all browsers now. Let me know if someone need the files.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
bindaaz
I got this mode working in version 1.5.0. I also applied the fix suggested by "Ooba_Scott". So not this seems to be working in all browsers now. Let me know if someone need the files.
it stopped working since i upgraded to 1.5. I ony have a blank rectangle.
http://www.royal-fleur.com
How did you got it to work on 1.5?
And yes i would need these files because i need to have this fixed.
Could you please help me?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
bindaaz
I got this mode working in version 1.5.0. I also applied the fix suggested by "Ooba_Scott". So not this seems to be working in all browsers now. Let me know if someone need the files.
I notice that this mod has not been confirmed as compatible with 1.5 either in the thread here or on the developer's Addons and Contributed Mods:unsure:
-
Re: Order Delivery Date Support Thread
Tried, but couldn't get it to work,
got this error
Uncaught TypeError: Object [object DOMWindow] has no method 'addEvent'
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
bindaaz
I got this mode working in version 1.5.0. I also applied the fix suggested by "Ooba_Scott". So not this seems to be working in all browsers now. Let me know if someone need the files.
Just installed 1.5. Could you send me the files?
-
Re: Order Delivery Date Support Thread
Is there work being done on updating this plugin to support ZC 1.5? Looking to upgrade a site that depends on the ability for customers to request a delivery date.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Ooba_Scott
I was having the same issue as other people with regards to the order date picker not working in IE9 ......
The fix that was issues a few posts back, by changing some bits in the mootools file ...... this is fine and fixes it for IE9, but it will then make it not work in Firefox, and it will not work correctly in Chrome (it will move you onto the next page if you click the calendar icon!)
The way we have got around it, is to force IE9 to behave like IE8 .....
To do this you need to add the following code into your html_header.php file (includes/templates/your_template/common/html_header.php)
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
This needs to to be the first tag within the <head> tag ....... even before the <title> tag!
This will then make IE9 behave like IE8 and your calendar should then work as it used to!
:) hope this is of help to someone!
thank you sooo much! you're a genius... totally fixed my problem! hopefully anyone else who has issues with the calendar working in IE9 sees your solution. thanks again!
-
Re: Order Delivery Date Support Thread
Is it possible to show the calendar directly on the cart page, instead of having it function as a pop-up? I would prefer for it to be on the page itself so that there is no confusion on the part of the shoppers, and also for aesthetic reasons.
Also, would it be possible to do one of the following?
1. Show two calendars on the cart page, and designate one for "local" delivery and the other for "national" delivery?
or...
2. Dynamically display the "local" calendar when the store's state is selected as the delivery state (New York) and show the "national" calendar when any other state is selected? (Ideally, this would be based on zip code geolocation, but I'd imagine that would be waaaaaay too much to ask... but feel free to let me know if I am wrong ;) ).
Thanks!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
Hey Steve,
I have been aware of this issue where when no date is selected, it reflects as being entered from 1999 or something weird, but i have been lax on updating this, and i apologize.
With regard to your changes listed above, you have edited core functions that zen cart also uses in other various places. So, while you may have fixed the display with order delivery date, you may have broken another part of the application.
In my last response from a few minutes ago regarding your first issue listed, i said that i would test the session fix within the next day or so. I will also try to write a new function JUST for order delivery date to address this issue. :smile:
I'm still having this Tuesday 30 November, 1999 issue... Can't seem to find a fix anywhere. Was it ever posted?
Thanks!
-
Re: Order Delivery Date Support Thread
Hi, I hope you can help me. I have created a site for a customer, www.theflowershoppe.co.uk, version 1.3.9 h. All worked fine until we added the required Cookie Control (got it on this site: http://civicuk.com/cookie-law/updates/Joomla). The calendar will no longer show up during checkout. When I remove the cookie control, the calendar works. Do you possibly have any suggestions on how can I have both working?
-
Re: Order Delivery Date Support Thread
Is there a time included version? I'm setting it up to be used as a store pickup date/time.
-
Re: Order Delivery Date Support Thread
I have used this module for a pick-up date and time.
I've managed to get a time field and it does work...except I'm having an issue with the display of the time on the checkout confirmation page. it's showing up as this:
Desired Pick-up Date
Thursday 16 August, 20121345146906
I created a function for the time as such:
function zen_time($raw_time) {
if ( ($raw_time == '00:00:00') || ($raw_time == '') ) return false;
$hour = substr($raw_time, 11, 2);
$minute = (int)substr($raw_time, 14, 2);
$second = (int)substr($raw_time, 17, 2);
return time(TIME, mktime($hour, $minute, $second));
}
Then in the tpl_checkout_confirmation_default.php file I put
<?php echo zen_time($order->info['order_delivery_time']); ?></h4><br />
Now it IS working great for putting the time into the db. That page is the only place it shows up funky.
I know someone out there can tell me what I'm doing wrong.
-
Re: Order Delivery Date Support Thread
Does anyone know how to put this on the product_info page?
What about adding a time feature, like mentioned in the above reply?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Beatzangel
thank you sooo much! you're a genius... totally fixed my problem! hopefully anyone else who has issues with the calendar working in IE9 sees your solution. thanks again!
This works also for me except if IE9 goes back to IE8 my template design is missing al the extra CSS design things compatible with IE9???
Hopefully someone has a real sollution to make it work in IE9
thanx
dre
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jagall
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:
having same problem with 1.3.9f any fix for this?
-
Re: Order Delivery Date Support Thread
I don't believe this is a 1.3.9 issue, but, rather a mysql issue. When a date of "0000-00-00" is read, it is known to be an impossible date, so it is read out as the default date.
As I recall, there are two options. One is to find the location where the date is written to the orders table and set it to today's date if it is blank, 0, or null. The other is to find the locations where the date is read out, and if it is 0, don't include it.
-
Re: Order Delivery Date Support Thread
Hi hoping someone can help me here. I have reinstalled the files a few times but yet the calendar will now show in either FF, IE or Chrome, only get the input box. Using 1.3.9h. The source reveals the following:
/includes/modules/pages/checkout_shipping/jscript_a-mootools.js,/includes/modules/pages/checkout_shipping/jscript_b-calendar.js&1341428085"></script>
<script type="text/javascript">
window.addEvent('domready', function() { myCal = new Calendar({ date: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); });
</script>
Not sure what the addon bit is with the jscript_b-calendar.js file?
thanks guys.
-
Re: Order Delivery Date Support Thread
OK this has been a HUGE help for me! The only thing I am trying to figure out with it, I need of they do not choose a date that it gives a error and makes them choose a date. Is there anything thats been done to fix this?
Thanks
-
Re: Order Delivery Date Support Thread
Hi,
New user here, I have a question that I don't think has been asked, but here goes :-
I have installed the addon with no issues but I would like to know, is it possible to stop someone moving onto the next stage of checkout before they have selected a desired delivery date?
Thank you
-
Re: Order Delivery Date Support Thread
Oh, just realised my request is the same as brandon's lol.
-
Re: Order Delivery Date Support Thread
Is there a way to make this mod work with FEC?
I tried a few thing but no luck. It is either FEC without delivery date option or zen cart standard checkout with order delivery date.
Any suggestion?
-
Re: Order Delivery Date Support Thread
Is there a way to make this mod work with FEC?
I tried a few thing but no luck. It is either FEC without delivery date option or zen cart standard checkout with order delivery date.
Any suggestion?
-
Re: Order Delivery Date Support Thread
Hi,
I am using version 1.3.9 h, working on www.wellhallflorist.co.uk. Have the same problem as a few others where the calendar blocks out the next two days. i.e. today is the 13th, but I cannot select that or the 14th or the 15th. What can I do so the calendar will allow me to choose any date from today's date?
-
Re: Order Delivery Date Support Thread
I have the same issue as several other posters and I can't see where the problem has been solved (possibly going blind at this stage)
The order_delivery_date calendar is working on the site and the selected delivery date appears in the email confirmation. However it does not get written to the database. The database values are all "0000-00-00". There has been a mod(not by me)to the original date format into the European d-m-y format. I am assuming that when zen cart attempts to write this date mysql does not like it and hence the 0000-00-00 values. I have looked around but can not find where the sql insert statement is performed. I am hoping to reformat the date data there and solve the problem. Can anyone tell me where the insert can be found. Perhaps it's not an insert... Thanks in advance
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
pjdub
The order_delivery_date calendar is working on the site and the selected delivery date appears in the email confirmation. However it does not get written to the database. The database values are all "0000-00-00". There has been a mod(not by me)to the original date format into the European d-m-y format. I am assuming that when zen cart attempts to write this date mysql does not like it and hence the 0000-00-00 values. I have looked around but can not find where the sql insert statement is performed. I am hoping to reformat the date data there and solve the problem. Can anyone tell me where the insert can be found. Perhaps it's not an insert... Thanks in advance
Yes, MySQL is particular about the format of data being inserted into DATE or DATETIME fields. It expects information to be entered in UTF, YYYY-MM-DD (or YYYY-MM-DD HH:MM:SS), but can accept some other formats.
I do not know what has been edited or where when you converted dates to DD-MM-YYYY format for display, but you will want to convert it back to YYYY-MM-DD format for the insert statement. If a new variable was created for the new date format, then the easiest way to do this would be to use the original variable for the insert statement.
-
Re: Order Delivery Date Support Thread
I gather that no version was ever put out that made the order date required on the shipping page. I went thru a number of php hoops trying to get something done with Dr. Byte's help and got no where. I'm thinking it has to be added to the javascript. Any one have any experience with this or has anyone figured out any way to make the date required?
Not having it required is what then gives you bizarre delivery dates in admin - the emails are probably being sent out without any delivery date at all.
I believe when I posted the newest version back in October that I didn't use the correct mootools. Has anyone had any problems with that version?
If someone will help with the required delivery date, I'll be glad to upload that as well.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
weif
Yes, MySQL is particular about the format of data being inserted into DATE or DATETIME fields. It expects information to be entered in UTF, YYYY-MM-DD (or YYYY-MM-DD HH:MM:SS), but can accept some other formats.
I do not know what has been edited or where when you converted dates to DD-MM-YYYY format for display, but you will want to convert it back to YYYY-MM-DD format for the insert statement. If a new variable was created for the new date format, then the easiest way to do this would be to use the original variable for the insert statement.
Thanks for the reply Weif. I persisted and found that the following works for what I require:
In includes\classes\order.php in the $sql_data_array around line 600
change
'order_delivery_date' => $this->info['order_delivery_date']
to
'order_delivery_date' => date("Y-m-d", strtotime($this->info['order_delivery_date']))
This worked for me. Dates are being written to the database in yyyy-mm-dd format and elsewhere the european formatting persists (not done by me so can't detail how it was done) Obviously this has nothing to do with null values nor no values being submitted in the delivery date. A problem for another day...
-
Re: Order Delivery Date Support Thread
As to having the delivery date required - in includes/modules/checkout_shipping.php
change
//BEGIN Order Delivery Date
if (zen_not_null($_POST['order_delivery_date'])) {
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);
}
$order_delivery_date = $_SESSION['order_delivery_date'];
// END Order Delivery Date
to
//BEGIN Order Delivery Date
if (zen_not_null($_POST['order_delivery_date'])) {
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);
} else {
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_DATE, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
$order_delivery_date = $_SESSION['order_delivery_date'];
// END Order Delivery Date
Add the error to the includes/language/english/your-template/checkout_shipping.php:
define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE', 'Please choose a delivery date');
-
Re: Order Delivery Date Support Thread
I have updated the mod and included a database setting to require or not require the delivery date. Also included the mootools version that works with IE9. I uploaded it to the plugins section a few minutes ago so it will take a little while to show up there.
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
Hi, I have a problem with this plugin.
I downloaded the last version (2.4) and it works fine the first time. Then I cannot see the calendar image on the checkout shipping page.
I had the previous version (2.3.2) and i didn't have any problem.
I test it on Internet Explorer 8 and Google Chrome 23.0.1271.97.
Please help me. I have to publish my site as soon as possible.
Thanks in advance.Attachment 11669
-
Re: Order Delivery Date Support Thread
The first time? Are you staying logged in, not finished the order, refreshing the page? How are you doing a second time?
-
Re: Order Delivery Date Support Thread
The first time I put an order in my site without any problem. The calendar image appears on the checkout shipping page.
Then when I wanted to put another order, the calendar icon doesn't appear, so the order couldn't be finished.
I tried to solve it refreshing the page, login again, deleting my browsing history and finally re-installing the plugin but those actions didn't solve the problem.
My hosting is in godaddy and it is on Linux.
-
Re: Order Delivery Date Support Thread
That is truly strange and I can't think of a reason why that would happen. It's just a javascript popup. I added in the database option to require it or not. Did you install that sql and make a choice? Just covering the bases of installation here.
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
delia
That is truly strange and I can't think of a reason why that would happen. It's just a javascript popup. I added in the database option to require it or not. Did you install that sql and make a choice? Just covering the bases of installation here.
Yes, I install the sql required, so now I can set if delivery date is required or not. Attachment 11672