Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Checkout Delivery Date Error

Checkout Delivery Date Error

Started by weblynx on 10 Mar 2011, 4:08 PM · Views: 1,126

Results 1 to 7 of 7
10 Mar 2011, 4:08 PM
#1
weblynx avatar

weblynx

New Zenner

Join Date:
Sep 2010
Posts:
4
Plugin Contributions:
0

Checkout Delivery Date Error

Hi All,

I got some problem and don't know how to solve it and i can't find any solution to other posts.

I have a problem on checkout delivery date,

on checkout page, you can choose delivery date, and then on the next page the order confirmation, you can see the delivery date chosen.

The problem is when I select march 31, 2011 or advance than that, the delivery date after process turns into blank. While other date like today or march 15, 2011 have no problem. The problem just start last week and no changes have made lately.

Please help me what file i will check where the date is process and inserted into database.

Thanks,

10 Mar 2011, 4:18 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Checkout Delivery Date Error

That is not a default function

What addon or modification has been made?

Zen-Venom Get Bitten

10 Mar 2011, 4:35 PM
#3
weblynx avatar

weblynx

New Zenner

Join Date:
Sep 2010
Posts:
4
Plugin Contributions:
0

Re: Checkout Delivery Date Error

many mods have been made but the last changes was just last year and no problem until last week, some date selected on delivery date though be still seen on the order confirmation but when click submit to process the date turns blank.

Delivery date is a new field added to the checkout page. No problem since last year. All fields but the delivery date have no problem. The order is finalized and received but no delivery date.

The weird thing is that have no problem on some date but some got problem.

What file will i check when the order is being process and the file where the data is now entered into database?

Thank you so much for the help

10 Mar 2011, 4:38 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Checkout Delivery Date Error

You need to determine what file was added/edited for this

Zen-Venom Get Bitten

10 Mar 2011, 4:46 PM
#5
weblynx avatar

weblynx

New Zenner

Join Date:
Sep 2010
Posts:
4
Plugin Contributions:
0

Re: Checkout Delivery Date Error

/home/sites/florela.co.uk/public_html/includes/classes/order.php

Line #64 : //ORDER DELIVERY DATE MOD - Added order_delivery_date to array

Line #76 : date_purchased, orders_status, last_modified, order_total, order_tax, ip_address, order_delivery_date,

Line #130 : //ORDER DELIVERY DATE MOD- Added order_delivery_date to array

Line #148 : 'order_delivery_date' => $order->fields['order_delivery_date'],

Line #528 : //ORDER DELIVERY DATE MOD- Added order_delivery_date to array

Line #549 : 'order_delivery_date' => $_SESSION['order_delivery_date'],

Line #790 : //ORDER DELIVERY DATE MOD- Added order_delivery_date to array

Line #837 : 'order_delivery_date' => $this->info['order_delivery_date'],

Line #1155 : //ORDER DELIVERY DATE MOD- Added order_delivery_date

Line #1162 : EMAIL_TEXT_DELIVERY_DATE . ' ' . zen_db_output($this->info['order_delivery_date']) . "\n\n" .

Line #1172 : $html_msg['EMAIL_TEXT_DELIVERY_DATE'] = EMAIL_TEXT_DELIVERY_DATE . ' ' . zen_db_output($this->info['order_delivery_date']);

/home/sites/florela.co.uk/public_html/includes/modules/pages/checkout/header_php.php

Line #257 : if (isset($_SESSION['order_delivery_date'])) {

Line #258 : $order_delivery_date = $_SESSION['order_delivery_date'];

/home/sites/florela.co.uk/public_html/includes/modules/pages/checkout_confirmation/header_php.php

Line #56 : if (zen_not_null($_POST['order_delivery_date'])) {

Line #57 : $_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);

Line #59 : $order_delivery_date = $_SESSION['order_delivery_date'];

/home/sites/florela.co.uk/public_html/includes/modules/pages/checkout_shipping/header_php.php

Line #140 : if (isset($_SESSION['order_delivery_date'])) {

Line #141 : $order_delivery_date = $_SESSION['order_delivery_date'];

Line #153 : if (zen_not_null($_POST['order_delivery_date'])) {

Line #154 : $_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);

Line #156 : $order_delivery_date = $_SESSION['order_delivery_date'];

**
/home/sites/florela.co.uk/public_html/includes/modules/pages/shopping_cart/header_php.php**

Line #23 : if (isset($_SESSION['order_delivery_date'])) unset($_SESSION['order_delivery_date']);

/home/sites/florela.co.uk/public_html/includes/templates/florela/templates/tpl_checkout_confirmation_default.php

Line #108 : <h4><?php echo zen_date_long($order->info['order_delivery_date']); ?></h4><br />

that's the file where delivery date is seen.

10 Mar 2011, 5:03 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Checkout Delivery Date Error

Again this does not appear in the standard code and you are asking about a mod in the General Questions area that deals with standard code

Line #64 : //ORDER DELIVERY DATE MOD - Added order_delivery_date to array

You should find the support thread for this mod in the contributions area

Zen-Venom Get Bitten

10 Mar 2011, 5:14 PM
#7
weblynx avatar

weblynx

New Zenner

Join Date:
Sep 2010
Posts:
4
Plugin Contributions:
0

Re: Checkout Delivery Date Error

Sorry for putting it here. My bad. My first time to post. Very Sorry.