Have you tested this in firefox or safari? I need to know if it's a browser based problem.
Printable View
Have you tested this in firefox or safari? I need to know if it's a browser based problem.
I've not heard any other complaints and this was actually done for a specific customer who has not heard any complaints from his customers. You want to pm me your site url and set up a test product that I can work with?
Hello,
I have a similar problem.
I had installed version 2.2 of Order Delivery Date plugin that worked well with Firefox and previous version of IE (<9). I've upgraded to version 2.4 and now the calendar does not appear neither IE9 nor Firefox.
Also I've tested with mootools 1.4.5 too but the plugin stop working.
both of you - what version of zencart are you using? I'll do a new install on a test server tomorrow with that specific download.
I have tested this in the latest version of firefox, ie9, ie8, the latest version of Chrome with no problems.
The only thing I can think of is that you may already some javascript or jquery installed in your cart that conflicts or there was a mistake in integrating or installing this mod.
Stoyka, since you had it installed before, would you give me the url of your website? You can pm me if you want. I want to look at what else is installed.
Y'all have to understand that I am no javascript expert by any imagination so may not be able to figure this out unless I can duplicate the problem on a correct installation.
Hi, I re-installed Order Delivery Date v.2.4 but with "jscript_a-mootools.js" v.1.11, that comes with Order Delivery Date v.2.3.2, and it works.
Adding this plug-in has been a lifesaver and has been a great tool to fiddle around with in regards to learning about the finer nuances of zen-cart customization. Thanks!
We've been having one particularly bizarre issue tonight that has us at a loss, so hopefully someone is able to shed some light on this. What we are trying to do is to add the $order->info['order_delivery_date'] value into the tpl_account_history_info_default.php page so that the customer can see the delivery dates along with an order placed. The delivery date shows up and works properly on tp_checkout_confirmation_default.php page, so there doesn't seem to be any obvious reason why it wouldn't work on the acct history info page.
We copied this from the tpl_checkout_confirmation_default.php:
And put it into the tpl_account_history_info_default.php in this section:Code:<h3><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h3>
<h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />
We get the header as expected (we had to add that to the definition file first), but the date shows up as blank space. We've tried it with and without the zen_date_long function, random h1-4 tags, div, divs with classes, or no tags, and even putting it elsewhere in the file and it is always blank. It shouldn't be a problem with the order.php class since the delivery date works elsewhere. I've verified that every order in the system has a value in the order_delivery_date field. What else could we be missing?Code:<div id="myAccountShipInfo" class="floatingBox back">
<?php
if ($order->delivery != false) {
?>
<h3><?php echo HEADING_DELIVERY_ADDRESS; ?></h3>
<address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></address>
<?php
}
?>
<?php
if (zen_not_null($order->info['shipping_method'])) {
?>
<h4><?php echo HEADING_SHIPPING_METHOD; ?></h4>
<div><?php echo $order->info['shipping_method']; ?></div><br />
<h4><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h4>
<div><?php echo $order->info['order_delivery_date']; ?></div>
<?php } else { // temporary just remove these 4 lines ?>
<div>WARNING: Missing Shipping Information</div>
<?php
}
?>
</div>
On first glance, you may need to look at the account history and account history info headers (under modules > pages) There are queries in header files that sometimes govern what is being pulled out of the database. If what you are doing isn't pulling the info, then it's missing out of a query.
In the shopping cart the delivery date becomes part of the session, not the order so it's carried thru the process without being in the database at all.
Hi,
I have previously posted a support request but nobody got back to me. I have an issue with the calendar. I have used it for www.theflowershoppe.co.uk. When I check out, to use an example, I tried to place an order this morning, but the earliest date the calendar is allowing is 21 January 2013. How can I fix this so I can place an order for delivery today, tomorrow or Saturday? I have just installed version 2.4 with no luck. Please, please help!
Barend
The delivery dates are determined by settings in the /includes/modules/pages/checkout_shipping/jscript_calendar_head.php. There is instructions in that file but the default settings are blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, which means the 24-25,31 of december are always blocked and 3 days from now is the earliest delivery date. So the scenario you are talking about can only be arrived out by changing those default settings. The instructions are in that file. If you haven't changed the settings then I really can't help you with this. The only thing that comes to mind is if your computer has the date wrong, that might affect the javascript which is browser based. That's a guess - not a statement of fact.
Hi,
Thanks for the reply. OK, if I change direction to 0, it shows all days, even in the past. If I do 1, it blocks today. What should the setting be for teh dates to show from today?
If it's just being used for the slider and the slider only appears on the home page, you can put the main jquery files into the pages folder. For example, in a default cart with no categories showing in the middle of the home page, the /includes/modules/pages/index folder would be where you place the correct jquery files instead of either calling the jQuery from a repository (that means someone would have coded the link to the repository in the template common/html_header.php file) or they may have hard coded all the files in that file. If you place the appropriate files in the pages folder prefixing the names with jscript_ then they will included only on the index pages, taking it out of checkout. Those jQuery files may also be in the jscript folder of your template either with the correct jscript_ prefix which automatically includes the files in all pages of the site. This is a bit complicated and I have written a simple jquery slider mod that sets it up exactly to avoid having it included in all pages and integrated with banner manager. But that mod was for sale. Now that there are fancier versions for free I have removed it from my paid mods and it is only available in a different way but that is still commercial so I can't tell you more here.
Many of paid templates come with a badly integrated jQuery slider and it's way too easy to cram a slider in by anyone who has a bit of knowledge about php and zen cart.
You didn't read the instructions closely enough. I believe it says to use .5 for today. And when I tell you this, it's because I just pulled up that file to answer the your previous question. I have to read the instructions thoroughly to reply to questions - not a bad idea for you to do so as well.
Not sure why, but after installing the latest version 2.4 in my newly upgraded 1.5.1 cart, I get a 404 on Checkout (/index.php?main_page=checkout_shipping). Tried 3 times and ended up reverting each time to a solid install. Can't tell what's causing it, though it seems to have something to do this mod. I had this working fine on 1.38. Any ideas?
Would like to try 2.0 but I've got the 2.4 SQL script (actually both of them now) in the db, and can foresee an error coming when I try to install the 2.0 script. I don't see a thread on uninstalling this mod, nor have I had any luck finding a way to remove it. Ideas? Thanks!
Actually that 404 turns out to be another issue. Got that one covered. But now after installing 2.4, the title and text field show up fine but the icon and calendar does not. And the text field won't let me enter any text. Any suggestions? I can see the code inserted in the checking shipping file...
<script type="text/javascript" src="includes/modules/pages/checkout_shipping/jscript_a-mootools.js"></script>
<script type="text/javascript" src="includes/modules/pages/checkout_shipping/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>
Site - http://texastamale.com/storefront/
Let me apologize if this was covered in this thread but I simply can't find it after looking for "days." I installed this in v1.5.1 and it is working flawlessly with one minor exception: The delivery date does not show up in ship confirmation email. It does show everywhere else it is supposed to but in the ship confirmation email it shows as $EMAIL_TEXT_DELIVERY_DATE. This happens on all order_status emails. Any thoughts?
Duffy no one else has reported this and that part has not been touched in a while. Think you might be missing something in the install.
Getyler2 you have jquery installed on the home page with that slider. Mootools and jquery do not work together. There is a way to fix your problem if that homepage slider is the only thing using the jquery- move the jquery to includes/modules/pages/index. Then the jquery will only be included on the home page. There are some ifs in that though. May not work on your cart; may turn off other jquery features.
This is an old mod and if I were doing it today, I would use jquery and not mootools and probably avoid these problems. But I didn't write it in the first place.
Dude!!! You so ROCK! That works like a charm. Thank you so very much. I am literally dancing right now. Pretty sure jquery's only used on the home page but will test out the rest of the cart. Cheers my friend!
Hi from Germany,
i translated the order delivery date module for the german zencart 1.5. . But now i have a problem. I think here are many Zenners who wants to use a timeslot and the exact time for the delivery.
Is it possible to update the order delivery module to date and time ? Javascript from mootols ist not my ... (I have no idea)
Is there a chance to create a admin module to control the aviable timeslots? (2 slots per hour / 3 days a week)
Thank you and best regards from Germany
COLOSSOS
Hi,
This is a great delivery date picker. It works great. There is only one problem. I am using a template named "Abbington_Mega" from Picaflor_Azul. This template has a great looking slider on index page. There seems to be a conflict with Jscript. There are two files located in \includes\templates\abbington_mega\jscript\ folder. They are "css_browser_selector.js" and "jscript_jquery.min.php" As soon as I rename these files, slider stops working and Delivery Date picker starts working. If I do not rename these files, the slider works, but Date picker stops working and stops showing the calendar. Any Idea how I can fix this issue?
If the slideshow is only on the home page, have you looked into adjusting the header file as appropriate in your template to only include those javascript libraries on the home page? That should eliminate the problem (and probably should have been done by the template designer - in my nsho).
I will be using this for a service that will be delivering goods to rental properties and would like to use it for the renter to specify their arrival date and time with their order (which will be used to schedule the delivery) can a time option be added to it?
thanks
Wondering if anyone has been able to integrate this mod with Fast and Easy Checkout?
I'm wondering if your delivery date program uses a drop down calendar where customer has to select date? Or, can they simply type in a delivery date?. I'm asking this because we currently have a delivery date function on our website, but it requires the customer to use a drop down calendar to select the date. The problem we've had is that if our customer doesn't have to correct Adobe Flash program, or whatever, they can't see the calender icon for the drop down and the program does not allow them to simply type the desired delivery date in. I would appreciate any info you can give me on this.. or if there is anybody who knows of a program I might get, I would greatly appreciate it.. I can be contacted directly at [email protected] Thanks again!
It does a drop down calendar - done with some javascript. Old javascript that seems to mostly work with browsers so less dependent on what a person has installed in their browser. Better than flash for sure. Best? Not really. Possible future plans to change this out to jquery which is more likely to work cross-browser and where these functions are going to instead of just javascript.
How do I uninstall this module?
As you would any mod. Remove extra files - in this case I believe the only extra files are the javascript files in includes/modules/pages/checkout_shipping. Then replace all the other files with the originals - or with your last merged files. If you have not had any experience installing or uninstalling mods, then this may be very difficult to do. You have to very careful and precise because one mistake can screw up your cart!
Hi there. I have used this plugin for a year and its awesome, thanks for you efforts. Just one question, is there a way to set orders by delivery date in orders page in the backend of zencart??
Well, nice idea but there is no native sorting on the orders total in Zen Cart. I would think it wouldn't be difficult to put that in by just copying the way it's done in the customers list. I'm not volunteering to do it for free though - most free mods I work on or create are paid for by someone initially and I donate that to the community.
I appreciate the interest and understand the question...maybe it will get added to the mod.
Help! We can't enter a Order Delivery Date on Step 1 of 3 during Checkout. When we go through the checkout process, the "Desired Delivery Date is Required!" and the "Date:" with text field are visible. However, we are unable to insert any thing (numbers or letters) into the data field and there is no calender to select a date from.
We installed this add on (source code and MySQL database changes) and we have not made any local modifications whatsoever. We have triple checked that all the files were installed correctly. We can set the new field (Require Order Delivery Date?) in Config > Minimum Values.
Has anyone else had this issue or know how to fix it?
We are currently using Zen Cart 1.5.1., PHP Version: 5.2.17, Database: MySQL 5.0.96, and are hosted by GoDaddy. We recently installed Order Delivery Date_2_4 and are having problems. We have checked on both Firefox 16.0.2 and Chrome 28.0.1500.95 and have the same problem in both.
Our site is: testdeliverydate.giveonlythebest.com
Any suggestions/solutions would be GREATLY appreciated!
Thanks
Sandra, have you gone back through to make sure that you uploaded all files one by one and do you have any other additional javascript or jQuery installed (could be for a slideshow or other things). Those are the 2 usual reasons why it may not be working.
Thanks for your speedy reply. We have checked the files one by one. However, we do have a slideshow on our front page only that uses javascript. You can see the code for yourself if you view page source on the front page of testdeliverydate.giveonlythebest.com.
For you convenience, here is the code from the front page of the site that javascript that drives the slideshow in it:
This code is in the <head> tag:
<script type="text/javascript" src="includes/templates/premium8b/jscript/jscript_jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="includes/templates/premium8b/jscript/jscript_jquery.cycle.all.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39685303-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
This code is in the <body> where the slideshow is.
<script language="javascript" type="text/javascript"><!--
$(document).ready(function() {
$("#slideshow").css("overflow", "hidden");
$("ul#slides").cycle({
fx: 'fade', //transition effects: fade, shuffle, zoom, turnDown, curtainX
timeout: 5000, //miliseconds between slide image change
pause: 1,
prev: '#prev',
next: '#next'
});
$("#slideshow").hover(function() {
$("ul#nav").fadeIn();
},
function() {
$("ul#nav").fadeOut();
});
});
//--></script>
Here are some quick questions:
- How would the javascript affect this add on?
- Is there anything we need to turn on or off in the admin area?
- What should we be seeing on the checkout 1 of 3 page with this add-on?
Thanks
that is jquery and does conflict. If the only thing you have is the slider, then it needs to be installed in a specific way to avoid conflicts.
There are 2 files in your custom templates - templates/premium8b/jscript/jscript_jquery-1.4.2.min.js
includes/templates/premium8b/jscript/jscript_jquery.cycle.all.min.js
Move both files to includes/modules/pages/index.
That should fix the problem.
Thanks! That did it!
Hi, I had this problem too and if i remember it was an issues with javascript, more than one jscript library or in the wrong place - might be worth a look.
delia
I would love to put this module into my store, but I'm building a new store using a responsive template from Zen4Me called "Celestial", and it not only uses a few jscripts but also uses "bootstrap" (?)... Is using this add-on possible with such a setup?
Almost forgot: Using ZC1.5.1 on GoDaddy with Celestial by Zen4Me.com. :dontgetit
Probably not at this time. Any bootstrapped template uses jQuery throughout the store which would conflict with the present javascript for the mod. I have hopes of upgrading the mod to jquery instead but that may have to wait.
Delia - I went looking through this and have a question: How much of this solution is using the MooTools JScript?. I ask as one not of the programming cloth, but curious... Is it adding the calendar and programming the input (and requirement of) the calendar date, or is there more to it beyond altering the layouts?
the mootools creates the calendar only -- otherwise integrated as normal thru php.
hi guys, im having some trouble installing this module along side fast and easy checkout, I have managed to input the calendar, and I have gone through all scripts in fec, adding the order delivery date code lines, for some random reason, it will always return a date of Tuesday 30 November, 1999 and i dont know why it is doing this, could anyone please offer me some guidance as to how i can fix this?
Many Thanks
Powell
Anyone interested in having this module converted to jQuery in order to modernize it and eliminate the jQuery conflicts that can happen, please PM me.
Hello,
Since your plugin doesn't included uninstall.sql, and I've install twice, how could I get rid of this?
Attachment 13573
I guess the "2 calendar" problem exist because of my duplicate installed......What happen is, I installed v2.4 but fail, therefore I delete all the files (not included the sql), and I installed v2-3-2, then the problem turns up.
Thanks,
Eva
I know the problem is cause by 2 .js file ......but unfortunately, I not a programmer, I even don't know which part of the code control the calendar icon. :dontgetit
Any quick advise? Thanks a Million.
Hey everyone,
I am trying to have the Order Delivery Date display on product info page instead of Checkout_shipping.
So far I got the table to display on the product page. I am able to select the date and to continue with checkout process.
However, the delivery date is not reflected on the checkout_confirmation. and it does not appear on the order.
I think it has something to do with the header.php file but I don t know how to change it so order delivery date would work on product info page
Any help would be more than appreciated
Thank you
I have amended my site to add order deliver time - documented it as I went along ....
Use at your own risk ....
Zencart Order Delivery Date – Time Addition
Following documents changes I made to my 1.5.1 installation to add Order Delivery Time to your Zencart.
It assumes you have Order Delivery Date mod already installed.
Datebase changes
orders.order_delivery_date was added as type 'date'. This needs to be changed to 'datetime'.
admin/includes/classes
order.php
no change
admin/includes/languages/English
orders.php
Change -
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date');
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
define('EMAIL_TEXT_DELIVERY_DATE', 'Desired Delivery Date:');
To -
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date');
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
define('EMAIL_TEXT_DELIVERY_DATE', 'Desired Delivery Date:');
define('TABLE_HEADING_DELIVERY_TIME', 'Desired Delivery Time');
define('ENTRY_DELIVERY_TIME', 'Desired Delivery Time:');
define('EMAIL_TEXT_DELIVERY_TIME', 'Desired Delivery Time:');
invoice.php
Change -
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
To -
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
define('ENTRY_DELIVERY_TIME', 'Desired Delivery Time:');
packingslip.php
Change –
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
To –
define('ENTRY_DELIVERY_DATE', 'Desired Delivery Date:');
define('ENTRY_DELIVERY_TIME', 'Desired Delivery Time:');
admin/
invoice.php
Change –
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
To -
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_TIME; ?></strong></td>
<td class="main"><?php echo substr(zen_datetime_short($order->info['order_delivery_date']) ,11); ?></td>
</tr>
orders.php
Change –
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
To –
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_TIME; ?></strong></td>
<td class="main"><?php echo substr(zen_datetime_short($order->info['order_delivery_date']) ,11); ?></td>
</tr>
packingslip.php
Change –
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
To –
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_DATE; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['order_delivery_date']); ?></td>
</tr>
<tr>
<td class="main"><strong><?php echo ENTRY_DELIVERY_TIME; ?></strong></td>
<td class="main"><?php echo substr(zen_datetime_short($order->info['order_delivery_date']) ,11); ?></td>
</tr>
no change
(this could be improved - but the time does appear next to delivery date.)
includes/classes
order.php
no change
includes/languages/english/TEMPLATE/
checkout_confirmation.php
Change –
// Begin Order Delivery Date
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date');
// End Order Delivery Date
To –
// Begin Order Delivery Date
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date');
define('TABLE_HEADING_DELIVERY_TIME', 'Desired Delivery Time by');
// End Order Delivery Date
checkout_process.php
Change –
// BEGIN Order Delivery Date
define('EMAIL_TEXT_DELIVERY_DATE', 'Desired Delivery Date:');
// END Order Delivery Date
To –
// BEGIN Order Delivery Date
define('EMAIL_TEXT_DELIVERY_DATE', 'Desired Delivery Date:');
define('EMAIL_TEXT_DELIVERY_TIME', 'Desired Delivery Time:');
// END Order Delivery Date
checkout_shipping.php
Change –
// BEGIN Order Delivery Date
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date is Required!');
define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE', 'Please choose a delivery date');
// END Order Delivery
To –
// BEGIN Order Delivery Date
define('TABLE_HEADING_DELIVERY_DATE', 'Desired Delivery Date is Required!');
define('TABLE_HEADING_DELIVERY_TIME', 'Desired Delivery Time is Required!');
define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE', 'Please choose a delivery date');
define('ERROR_PLEASE_CHOOSE_DELIVERY_TIME', 'Please choose a delivery time');
// END Order Delivery
includes/modules/pages/checkout_shipping
header_php.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']);
} elseif (MIN_DISPLAY_DELIVERY_DATE > 0)
{
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_DATE, 'error');
To -
//BEGIN Order Delivery Date
if ($_POST['order_delivery_time'] == 'notselected') {
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_TIME, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
if (zen_not_null($_POST['order_delivery_date'])) {
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date'] . " " . $_POST['order_delivery_time']);
} elseif (MIN_DISPLAY_DELIVERY_DATE > 0)
{
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_DATE, 'error');
jscript_a-mootools.js
no change
jscript_b-calendar.js
no change
jscript_calendar_head.php
no change
includes/templates/TEMPLATE/css
checkout_shipping
no change
includes/templates/TEMPLATE/images
no change
includes/templates/TEMPLATE/templates
tpl_checkout_confirmation_default.php
Change -
<?php // BEGIN Order Delivery Date ?>
<br />
<h3><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h3>
<h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />
</div>
<?php // END Order Delivery Date ?>
To -
<?php // BEGIN Order Delivery Date ?>
<br />
<h3><?php echo TABLE_HEADING_DELIVERY_DATE; ?></h3>
<h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />
<h3><?php echo TABLE_HEADING_DELIVERY_TIME; ?></h3>
<h4><?php echo substr(zen_datetime_short($order->info['order_delivery_date']),11); ?></h4><br />
</div>
<?php // END Order Delivery Date ?>
tpl_checkout_shipping_default.php
please note I force my customers to choose a 2 hour time window - you can amend the option value statements below to best suit your needs. Do note that I do record the upper limit of the time window in the order.
Its up to you what business logic you wish to apply.
Change -
<!-- Bof Order Delivery Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<label for="order_delivery_date">Date:</label>
<input readonly="readonly" id="date" name="order_delivery_date" type="text">
</fieldset>
<!-- Eof Order Delivery Date -->
To -
<!-- Bof Order Delivery Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<label for="order_delivery_date">Date:</label>
<input readonly="readonly" id="date" name="order_delivery_date" type="text">
</fieldset>
<fieldset class="shipping" id="order_delivery_time">
<legend><?php echo TABLE_HEADING_DELIVERY_TIME; ?></legend>
<label for="order_delivery_time">Time:</label>
<select name="order_delivery_time" id="delivery_time">
<option value="notselected" selected="selected">Please select ...</option>
<option value="11:00">09:00-11:00</option>
<option value="12:00">10:00-12:00</option>
<option value="13:00">11:00-13:00</option>
<option value="14:00">12:00-14:00</option>
<option value="15:00">13:00-15:00</option>
<option value="16:00">14:00-16:00</option>
<option value="17:00">15:00-17:00</option>
<option value="18:00">16:00-18:00</option>
</select>
</fieldset>
<!-- Eof Order Delivery Date -->
Hi I have installed this plugin and having a problem with it. It wont let my customers choose a delivery date. TABLE_HEADING_DELIVERY_DATE
Date:
Zen Cart 1.5.1
Database Patch Level: 1.5.1
v1.5.1 [2013-10-14 20:11:52] (New Installation)
v1.5.1 [2013-10-14 20:11:52] (New Installation)
Thank you for your time to help..
how can i get jQuery version ?
Hi,
Will someone please kindly tell me:
Which part of the js file control the calendar icon??
Attachment 13989
Never get rid of this since last year......
Thanks,
Eva
Hi,
I'm using v.2-3-2, but want to add "ERROR_PLEASE_CHOOSE_DELIVERY_DATE" in checkout_shipping/header_php without update to v.2-4. Cause I can't fix the conflict in v.2-4.
I've seen and try Delia's solution below:
http://www.zen-cart.com/showthread.p...ckout-shipping
PHP Code:
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'));
I followed #357 and add the time function, the error part was worked:
.PHP Code:
if ($_POST['order_delivery_time'] == 'notselected') {
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_DATE, 'error');
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_TIME, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
if (zen_not_null($_POST['order_delivery_date'])) {
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date'] . " " . $_POST['order_delivery_time']);
}
$order_delivery_date = $_SESSION['order_delivery_date'];
.
.
However, now I no longer apply the time function, and because of this the "ERROR_PLEASE_CHOOSE_DELIVERY_DATE" keep no show.
I try to fix the code, but no luck:dontgetit
PHP Code:
if ($_POST['order_delivery_date'] == 'notselected') {
$messageStack->add_session('checkout_shipping', ERROR_PLEASE_CHOOSE_DELIVERY_DATE, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
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'];
And yes, I'd add this line to checkout_shipping.php already.
PHP Code:
define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE', 'Please choose a pickup/delivery date');
Any ideas?
Many Thanks
I use zx_slideshow.4
that means order_delivery_date is not working.
does someone has an idea to use both zx_slideshow.4 and order_delivery_date?
do i need to move jscripts of zx_slideshow.4?
thank you guys have a good one...
Is it possible to set the Delivery Date required only if customer is using local delivery as shipping option, otherwise not required?
v1.5.3 and Product Delivery by Postcode
Hi trisha33,
I had the same problem! but i found a solution!
find the js file jscript_a-mootools.js in \includes\modules\pages\checkout_shipping
and add the following "jQuery.noConflict();" on the top of the file underneath the remark //MooTools and above the var MooTools like this
//MooTools etc..
jQuery.noConflict();
var MooTools={ver....
this should do the trick! for me it works!
why is this, because of a conflict in jquery..
Great add on - but have a feature question
Is there a good way to have an exception to a blocked date rule; i.e. to unblock a specific date. I see a lot of flower shops are using this, and a lot of them will be closed on Sundays, except Mother's Day.
What I have in the block code to address this is:
but it seems that something like this:Code:blocked: ['24-25,31 12 *', '4 7 *', '0 1-4,6-12 * 0', '3,17,24,31 5 2015']
may be easier to understand and manage.Code:blocked: ['24-25,31 12 *', '4 7 *', '0 * * 0', '!10 5 2015']
This module is under development at the moment. Hopefully, I'll have the new one ready in May. The blocked out dates will be entered in admin so you won't have to deal with editing the files.
Hi I have one question can I specify the delivery date while we insert the product by admin panel at that time only........?
You are talking about dates with specific products? No.
Hi Delia,
Please advise if "order_delivery_date_2_4" works with "responsive_sheffield_blue_2".
I have tried but I get stuck at Page 1 of 3. I can't seem to get the calender to pop up.
I can't even enter a date.
Any advise will be appreciated.
that would be a jquery conflict since that template also uses jquery. You can try removing the jscript_jquery-1.9.1.js located in includes/modules/checkout_shipping but I don't guarantee that will fix it.
Submitted today version 2.5 of the plugin which adds the files/modifications for at least ZC 1.5.5 front side. Also modified the date entry block to not be read-only (commented out the section so it can be "restored as desired) and repopulated the field with the data that may be available such as if returning to the checkout_shipping page once visited and the date populated.
Version 2.5 has been posted and is available from the ZC plugins page here.
Hi
WinRAR is telling me the archive is corrupt.
Although at the final time of putting the zip together WinRAR didn't report an issue, there had been one which required "starting over" with the zip file. Having also downloaded it and looked at the file as I had stored it in an alternate location I see that there are issues primarily with "backup" files such as the images in the V1.5.5 folder of includes/templates/YOUR_TEMPLATE/images/calendar. There were four images that did not successfully make it out of the unzip when I tried to get them, but they are the same images as in all of the other "versions".
I did also think of a few other things that could be done for the module, such as asked about on the previous page of having an entry per product instead of per delivery. Seems that it could be done if an additional attribute type were introduced, though haven't looked into all of the data validation associated with it.
Anyways to resolve this issue I need to speak with the plugin moderator(s) to find out how they suggest the best way forward, whether to repackage and give a new version number or replace the existing download with the repackaged version that isn't identified as corrupt.
Version 2.5.1 submitted which should be a functional zip file this time around.
Version 2.5.1 is available from the downloads section here.
Summary of changes:
Quote:
- Updated the fileset to merge/include ZC 1.5.5 both the classic template and responsive.
- Added to repopulate the order delivery date field with the value entered previously (as in navigating back from the checkout_confirmation page)
- Removed the Read-only attribute for the date entry field (commented out but still present) to support when/if javascript is disabled. Be sure to notify your customer(s) about the date format that is needed if you keep the field updateable.)
Hello anyone :-)
Before I download this mod, can anyone tell me if the timeslot selector has been added to this delivery date mod? My searching through the thread has been inconclusive, though many people have brought such request up over the years. For home delivery I require a mod that allows customers to select the date as well as a 1 hour time slot for such date. Design75 has been working on one early this year, but I am not sure if the project has been abandoned, as I have been getting "dead air" on the progress for about a couple of months, and I really need to have this functionality on my start-up site.
Much appreciated. :-)
This mod as recently updated still only has a date identifier associated with it. No time has been directly incorporated think I remember seeing some options that could be set to support time, but please don't quote me on that. My goal at the time of update was simply to maintain operability in more recent versions of ZC.
I would recommend though that you download the software and on your development site (duplicate of your current site) take a look at what it can do and maybe see if it is possible to incorporate a time field.
Thank you very much.
I am using 1.5.5 and 2.5.1.
If you set the direction to 5 and you want to allow Saturdays and Sundays for breaks to be blocked, I would like to be able to select days after Saturday and Sunday, is it possible to deal with it?
Example: today is 2017/8/10
Direction: 5
Blocked: '0 * * 0, 6'
Delivery possible date is 8/17.
It is possible to prevent delivery selection of saturday and sunday by the above blocked statement; however, Direction is a number representing how many calendar days forward of today to allow the next delivery. Basically in your case, if today is Saturday, Sunday, early Monday or late Friday then the direction is 5, otherwise 7.
More research is needed, but in the basic sense, additional javascript code can be used to provide a result of 5 or 7 depending on the result of the javascript method: getDay()
The problem with the above is that it uses 5 for any time during Monday and Friday, not just after some cut-off time. Further, the function responds based on the date/time of the user not the store. So in the extreme case of a store being on one side of the date line, a customer on the other side may be offered a delivery time period outside of the expected/allowed time frame or may be provided a date that is sooner than possible. Additional date/time comparison would be needed to say make the comparisons on the left more "realistic" to your business if you deal with people outside of your central location. If they are local, then say where curDay == 1 && curTime < Mondays_cut_off_time would be what is needed, though would have to also identify/determine what Mondays_cut_off_time would be. The same would be needed for Friday but a little in reverse: curDay == 5 && curTime >= Fridays_cut_off_time. Oh, also would need to set/determine curTime... again more research would be needed on my side or as someone else offers up.Code:todayDate = new Date();
curDay = todayDate.getDay();
Direction : (curDay == 0 || curDay == 1 || curDay == 5 || curDay == 6) ? 5 : 7);
Also, if additional "tests" are added as described, things like curDay == 1 && curTime < Mondays_cut_off_time would need to be surrounded by parentheses. So that the two pieces would be treated as one test.
Also, it is fine if only Saturday and Sunday, but it seems to be unable to deal with holidays and other holidays.
By the way, if it is judged by time, it may not be beautiful,
direction: <?php (strtotime(date('H:i:s')) < strtotime('10:00:00')) ? 5:7; ?>
I feel like I can cope if I do.
Take a look at the example in: includes/modules/pages/checkout_shipping/jscript_calendar_head.php
It contains an example of two "dates" being blocked out for one entry. The first example is an actual and specific date, the second is more generic, but they are contained within square brackets with a comma between. To then factor that/those in as well to achieve the most flexibility for the customer, the holiday would have to be "considered" within the direction determination. Ie. A Monday holiday with a today date being Thursday means that the delivery has to be pushed out an additional day. If nothing else, welcome to computers and date/time keeping. :P sorry, some of the issues surrounding dates are not the easiest to resolve. There may be some additional "plugin" out there that could do this part of the calculation and provide a modified future number. Or perhaps a different date script could do it more "automatically"; however, capturing a lot of that request requires additional "work".
Right, so, again, using php provides date/time of the server. Using javascript basically uses the date/time of the computer accessing the site... working around that is where I was indicating addition review would be necessary. Wanted to at least get you started on looking, thinking, etc...
I'm sure I overthink it, but another concern/consideration of using php time (the "exact time" instead of a timezone) is that if a page is opened either near the end of the time period or just before the start, when the javascript processes to show the available options, the information is hard-coded and not flexible to the users time. Works in their favor just before the cut-off on Friday, but hurts them if they start just before the late Monday time.
Then there is also the effect of opening another tab for the site such that the session remains active while they "investigate" or otherwise navigate the site to eventually come back to the checkout section. Again, generally want to keep that as fluid as possible. Now the php time and timezone could be hardcoded as part of the comparison such that the user's date/time is converted to the same as your server and then compared to that value... That way at least you don't have to capture their time, just "show" them "yours" and let the software complete the comparison.
Then as for the "holidays" basically need to evaluate future holidays to see if they fall within the applicable span and if they do, add that many holiday days to the result... at least that's what I just considered, though may require more consideration.
thank you for your answer.
If there are any good ideas, thank you.
If you find something here, I will contact you.
2.51/1.55 - The delivery date is showing up everywhere except on the admin confirmation email. Can you tell me which file generates this information so I can update it?
You say the admin confirmation email doesn't have it, so does that mean the customer's version does?
The contents of the email are generated in includes/classes/orders.php in the function send_order_email.
If you are sending html style messages then the applicable /email/ template needs to be updated to present/send the added information. I'm sure there's a FAQ about it, though it's not too complicated if you look at one of the files and compare it's contents with the contents of the above function. Sugest looking at email_template_checkout.html for the order confirmation content.
The admin email generally should look just like the customer's email but have some additional information related to the customer's visit.
I've upgraded from 155d to 155e, have 2.51 installed. Now, the calendar doesn't show up, we have the input box. I've verified all files are in the right place... a couple of times. Database is up-to-date. Image files are in place. Any ideas?
Header_php.php which comes with the 251 version breaks my zc... click checkout and gets a blank screen or 500 error. The older version allows the system to continue, but no calendar etc as noted above.
Are all these "issues" occurring on a single system or are you managing like 3 different stores all of which are experiencing different levels of operation?
As far as the files provided. Unfortunately for the 1.5.5 version, the additional effort was not made to pull the changes out of the base files at the time the update was provided. Therefore, it is important to understand that the modified ZC files provided may not be completely up-to-date with the files on your system. But, the changes made to those files are relatively identified and should be made to the file(s) in your system. It could be that something else on your system made changes to the applicable header_php.php file and when replaced with the calendar version there are problems.
Now, when someone says they are having a problem, the typical next question is what is the problem and back and forth until information is provided. May I recommend book marking the following instruction related to receiving an error, blank screen, pretty much etc... http://www.zen-cart.com/content.php?124-blank-page
The information provided will help much more than "doesn't work" style reports.
If I may put it another way. I'm trying to help based on the information provided. So far there appears to be three different issues that remain unresolved or perhaps they were each individually resolved but there is no discussion about how or why. There's discussion about having upgraded without describing how that upgrade was performed, what else might have been modified, etc... make a lot of changes at once it becomes difficult to identify what the problem is and how it was introduced as compared to incremental changes or planned modifications. Anyways, hope that can sort things out. Right now, my recommendation almost is to reinstall the files from the plugin by merging/verifying present the changes needed to support operation is made/carried over.
Yeah, I reverted back to the original base files and then moved the add-in to replace. I did compare files prior to that, but they were older. I think I am going to have to revert to the base files, then compare the add-in and instead of replacing, merge the changes into the base files. I've had to do that in the past. Cheers
The only thing in the logs is "PHP Fatal error: Call to undefined method payment::process_form_params() in /home/saftek/public_html/shop/includes/templates/custom/templates/tpl_checkout_confirmation_default.php on line 187". I'm trying to track that error down now.
The admin email isn't using the html template and the delivery date isn't being added to that admin email.
That would be because in includes/classes/orders.php within the function send_order_email, the provided file has two occurrences of $email_txt (or similar variable) both having an equals sign, but only the first occurrence includes the order_delivery_date. This means that when the second occurrence is executed, that the plain text email will not include the order delivery date.
I wish I could remember why it was incorporated in that way, but haven't been able to dredge that memory. Not sure if it related to movement of code from one version to the next, that as is, there is no logic included to omit the delivery date if the site doesn't require it, or what.
That said, today I worked out an observer class to effectively remove the need for any core file edits to where information would only be needed to be incorporated into the override template files and the associated admin screens.
I have something to change regarding the necessity to enter a date and the availability of javascript to improve the customer experience and to extend the observer into the admin's operation, but would expect an update of the plugin relatively soon to be issued.
We have resolved the email problem by making all emails html. BUT: we have the following problems. We have merged all pages into existing pages.
1) calendar isn't showing up on the checkout page.
2) /yourtemplate/templates/tpl_checkout_confirmation_default.php - line 187 - this bit of code
---- . (is_array($payment_modules->modules) ? $payment_modules->process_form_params() : '') ----
breaks the final checkout page and results in error
-----Fatal error: Call to undefined method payment::process_form_params() in /home/saftek/public_html/shop/includes/templates/custom/templates/tpl_checkout_confirmation_default.php on line 187 ----
Any clues on where to go from here would be appreciated.