Zen Cart Logo
Forums / Managing Customers and Orders / Order Delivery Date Support Thread

Order Delivery Date Support Thread

Views: 162,562

Results 341 to 360 of 544
15 Aug 2013, 19:12
#341
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Order Delivery Date Support Thread

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:

  1. How would the javascript affect this add on?
  2. Is there anything we need to turn on or off in the admin area?
  3. What should we be seeing on the checkout 1 of 3 page with this add-on?

Thanks

15 Aug 2013, 19:17
#342
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Order Delivery Date Support Thread

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.

15 Aug 2013, 20:25
#343
ibuttons avatar

ibuttons

New Zenner

Join Date:
Nov 2008
Posts:
51
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Thanks! That did it!

15 Aug 2013, 22:20
#344
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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.

19 Aug 2013, 13:51
#345
chowardart avatar

chowardart

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
57
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

19 Aug 2013, 14:01
#346
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Order Delivery Date Support Thread

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.

23 Aug 2013, 18:06
#347
chowardart avatar

chowardart

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
57
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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?

23 Aug 2013, 18:55
#348
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Order Delivery Date Support Thread

the mootools creates the calendar only -- otherwise integrated as normal thru php.

05 Sep 2013, 13:33
#349
powell avatar

powell

New Zenner

Join Date:
Jan 2012
Posts:
2
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

05 Sep 2013, 16:17
#350
weif avatar

weif

New Zenner

Join Date:
Mar 2010
Location:
Butte, MT
Posts:
83
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

powell:

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?

Check your database for the actual date that is being saved in the database. I believe I ran into this before and it was that either the insert/update statements for the DB were not correct or the select statement from the database was not correct.

18 Sep 2013, 21:09
#351
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Order Delivery Date Support Thread

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.

20 Sep 2013, 06:56
#352
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: Order Delivery Date Support Thread

delia:

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.

If you mean instead of mootools, Yes please.

And it would be great if a time-picker (hour-picker) could also be included.

Many Thanks

19 Dec 2013, 10:21
#353
green_books avatar

green_books

New Zenner

Join Date:
Nov 2013
Location:
Hong Kong
Posts:
44
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

20 Dec 2013, 08:46
#354
green_books avatar

green_books

New Zenner

Join Date:
Nov 2013
Location:
Hong Kong
Posts:
44
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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.

30 Dec 2013, 02:24
#355
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

02 Jan 2014, 08:15
#356
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: Order Delivery Date Support Thread

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>

email

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 -->
01 Feb 2014, 17:52
#357
trisha33 avatar

trisha33

New Zenner

Join Date:
Oct 2004
Posts:
18
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Alrighty, it has been approved.

You can find the contribution here:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=976

Please let me know how this works out for you - If the installation went smoothly, please let me know! Or, if you ran into any problems or have any suggestions, please let me know that as well.

Thanks! :smile:
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..

18 Mar 2014, 22:46
#358
josemacabrera avatar

josemacabrera

New Zenner

Join Date:
Jun 2009
Posts:
5
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

how can i get jQuery version ?

14 Apr 2014, 09:14
#359
green_books avatar

green_books

New Zenner

Join Date:
Nov 2013
Location:
Hong Kong
Posts:
44
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

28 Apr 2014, 04:27
#360
green_books avatar

green_books

New Zenner

Join Date:
Nov 2013
Location:
Hong Kong
Posts:
44
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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.php?201179-Add-an-error-to-the-message-stack-for-checkout-shipping

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:

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

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.

define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE', 'Please choose a pickup/delivery date');

Any ideas?

Many Thanks