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.
Printable View
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