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

Order Delivery Date Support Thread

Views: 162,570

Results 161 to 180 of 544
5 Feb 2009, 8:40 PM
#161
fooddudes avatar

fooddudes

New Zenner

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

Order Delivery Date Support Thread

Checkout Process Skips Shipping Information

When checking out, the shipping page is skipped and it brings me directly to the payments page, which is step 2 of the checkout process. I had a program developed restricting the combination of products from multiple categories and had to turn of the combined shopping cart option in the modules/pages/login/header_php.php file. The error only seems to be occurring 1 out of every 4 checkout attempts. Is there more to turning off the combining of shopping carts, if so how am I able to do so? If this is not the problem what would be the causing this error?

I am using version: zen-cart-v1.3.8a

Thanks

7 Feb 2009, 1:56 AM
#162
fooddudes avatar

fooddudes

New Zenner

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

Re: Order Delivery Date Support Thread

I figured out the problem regarding skipping the shipping information page in checkout.

Now my question is how can you display the date based off your server and not the workstation? Any help is greatly appreciated.

7 Feb 2009, 2:15 AM
#163
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hi guys -- there is something wrong with my email notification of this thread because i was JUST notified that there was another thread posting since the last time i posted, and there have been a number of you that have since asked questions. Give me a few days to get back to you guys because i'm currently on the road until... tuesday??

Thanks!!

11 Feb 2009, 6:12 PM
#164
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

plbs:

I noticed that, if you place and complete an order with a selected delivery date, then in the same session place a second order, but leave the delivery date blank, the 2nd order will store the same delivery date that you entered on the first order.

Figured out that this was due to the Order Delivery Date being stored in a session variable, along with other order-related data, but that (unless I screwed up the install!), the delivery date session variable is never cleared like the others are. So, I made the following change to includs\modules\pages\checkout_process\header_php.php ...

// unregister session variables used during checkout
unset($_SESSION['sendto']);
unset($_SESSION['billto']);
unset($_SESSION['shipping']);
unset($_SESSION['payment']);
unset($_SESSION['comments']);
unset($_SESSION['order_delivery_date']); //<- added this line
$order_total_modules->clear_posts();//ICW ADDED FOR CREDIT CLASS SYSTEM

That seemed to fix the problem.

Ahhh - i hadn't thought about this and it has not been brought up before now. I will test this fix in the next day or so and update the official contribution package. Thanks!!

11 Feb 2009, 6:23 PM
#165
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

plbs:

Well, I'm a PHP and ZC newb, so I don't know if this is the ideal solution, but I did come up with a fix for my #2 problem above.

I edited admin\includes\function\general.php, specifically the three date conversion functions, zen_date_long, zen_date_short, and zen_datetime_short

Each of those starts with an if ... return false statement to trap essentially blank input. It was trapping '0001-01-01 00:00:00' as a "blank" date, but I found that my NULL date field was actually evaluating to "0000-00-00" as a string. So I added another OR to each of those IF statements:

function zen_date_long($raw_date) {
if ( ($raw_date == '0001-01-01 00:00:00') || ($raw_date == '0000-00-00') || ($raw_date == '') ) return false; //<-- edited this line

function zen_date_short($raw_date) {
if ( ($raw_date == '0001-01-01 00:00:00') || ($raw_date == '0000-00-00') || ($raw_date == '') ) return false; //<-- edited this line

function zen_datetime_short($raw_datetime) {
if ( ($raw_datetime == '0001-01-01 00:00:00') || ($raw_datetime == '0000-00-00') || ($raw_datetime == '') ) return false; //<-- edited this line

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:

11 Feb 2009, 6:30 PM
#166
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

cpixi:

...could you give a newbie php user a little advice on requiring the date instead of just requesting it?

My guess is to write an if else clause on the tpl_checkout_payment_default.php page directing the customer back to the shipping page if they do not enter in a date.

Let me look into this in the next day or so when i'll be working on the delivery date code. I'll get back to you on it. :smile:

11 Feb 2009, 6:39 PM
#167
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

gbrown77:

I was wondering if anyone has made one message that describes "Here is how to install, configure etc." I have been trying to read thru all #159 messages, but some are 3 years old.

Just so you know, I have downloaded all the files installed them, but I can not figure out how to get it to run, I go thru the order process and it never asks me when to deliver? The files are all there, but no mod.

George,

If you do not see the delivery date field on the first checkout page, then it sounds like you don't have your files in the right place.

There are instructions in the readme file. Read them closely. Then you will see it tells you were to specifically edit the blackout dates and use functions of the calendar picker itself.

If you are still having issues, check again that all the contribution files have been uploaded to the correct folder and that the file permissions are in line. Quite a number of people have downloaded and successfully installed this mod, and usually with the symptoms you're experiencing, double checking the files and stuff usually gets them on track.

11 Feb 2009, 6:41 PM
#168
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

FoodDudes:

Now my question is how can you display the date based off your server and not the workstation?

Which date are you referring to? The date that shows up on the shipping page in the popup calendar? The date on the orders page in the admin?..

11 Feb 2009, 8:03 PM
#169
fooddudes avatar

fooddudes

New Zenner

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

Re: Order Delivery Date Support Thread

mrmeech:

Which date are you referring to? The date that shows up on the shipping page in the popup calendar? The date on the orders page in the admin?..

I am referring to the start date in the calender on the shipping page. If the date on you workstation is incorrect the start date is incorrect. I would like to know where I can change the date to be based off the server date, not the workstations date

Thanks

16 Feb 2009, 1:18 AM
#170
mattbuk avatar

mattbuk

New Zenner

Join Date:
Feb 2009
Posts:
9
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Ok - i took a look.

I think your approach with editing the English.php file is not the best of ideas (partially because it's a core file).

The date on the checkout_shipping page where the dropdown calendar is, cannot be varied. That one HAS to show in the Y-m-d format or else it will not get inserted into the database in the right format and the date will be wrong.

Aside from that, once you're past that page you should be able to echo out the date in whatever format you want - and you can configure this on includes/templates/YOUR-TEMPLATE/tpl_checkout_confirmation_default.php

As for altering the email delivery date formatting, you need to look in the monster order.php file which lives inside includes/classes. Look around line 900~940-ish. (I think there might be another spot somewhere in that file that needs email editing too but i don't ahve the time to dig for it right now)..

That should put you on a pretty good track.

I am wanting to do the same thing and get the delivery date in the confirmation email to be in the style of like "Monday 16 February, 2009"

in the order.php file I tried changing

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

to

$html_msg['EMAIL_TEXT_DELIVERY_DATE'] = strftime(DATE_FORMAT_LONG);

but his did not work. Can anyone help?

18 Feb 2009, 10:54 PM
#171
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hi people -- i wound up being out of the country until next week and have super poor access to the internet. Will be in touch then and i apologize for the delay.. i realize some of you are working on projects and are waiting for my response -- i will get back to you, i promise. I'd do it now but there's a huge snow storm coming! All the best..

2 Mar 2009, 11:40 PM
#172
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

FoodDudes:

I am referring to the start date in the calender on the shipping page. If the date on you workstation is incorrect the start date is incorrect. I would like to know where I can change the date to be based off the server date, not the workstations date

Hey - I looked into seeing if this could be done easily, and the short answer is No.

In general - Javascript (which is what the calendar is created with) is a client-side technology. NOT a server-side technology. There are ways to get the server's date to javascript via a PHP file, but once you do that you run into another problem -- the whole JS calendar framework is designed to use the date() object, so in order to do this, you'd have to do a major reworking of the code. And that is a big task.

If having the server's time is a major issue for you, i would suggest looking in to PHP calendars. What you can do then is cut out the javascript calendar code and place your PHP calendar in it's place on the checkout_shipping page. The whole Includes/Modules/Pages/Checkout_Shipping folder, except for header_php.php, is for the javascript delivery date calendar. And in your template folder in tpl_checkout_shipping_default.php you will see where the Order Delivery Date code is to replace with the PHP calendar.

Hope you can make sense of all that!! :smile:

3 Mar 2009, 7:59 PM
#173
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hey folks -

I need a little help from you guys!

I've been working on the delivery date contribution for the last day and a half and have made some significant improvements to the code. However, i have a little collateral damage from my changes and i'm having an impossible time troubleshooting an email issue that has occurred.

I would love it if someone, or more than one person, is willing to take a look at the code and give me a hand to get this much updated release out. Having an understanding of zen cart's code is important.

Thanks! :smile:

10 Mar 2009, 1:46 PM
#174
djrutsch avatar

djrutsch

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Excellent contribution Meech, the delivery date is essential for my business. A question: is it possible to set up a system where people who request Saturday delivery are charged more than Monday-Friday delivery dates? FedEx charges additional for Saturday delivery so, it would be nice to establish that.

10 Mar 2009, 3:33 PM
#175
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

djrutsch:

Excellent contribution Meech, the delivery date is essential for my business. A question: is it possible to set up a system where people who request Saturday delivery are charged more than Monday-Friday delivery dates? FedEx charges additional for Saturday delivery so, it would be nice to establish that.

Hey djrutsch,

To have this functionality based off of the calendar, where if a user selects a Saturday delivery date they are charged more, is a bit of a task. This may become much easier to do when zen cart 2.0 is released and will be 100% (or close to) object oriented code.

There are a few stop-gag options for you:

  • Disable all Saturdays on the calendar from being active, so that it cannot be chosen as a delivery date.
  • or; Add an attribute to your product pages that forces (ie: a required field) the user to select either a weekday OR saturday delivery before getting to the checkout. For the weekday attribute you can leave it as $0, and for the saturday attribute you can set it to whatever additional amount you'd like to charge. When they get to the shipping page they then select which day of the week or which saturday they would like for delivery.
    I can help you with either of the above two options if you need assistance, as they are easy and quick to do.
11 Mar 2009, 2:31 PM
#176
djrutsch avatar

djrutsch

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

That works perfect, thanks!

15 Mar 2009, 5:14 PM
#177
duffy avatar

duffy

New Zenner

Join Date:
Aug 2005
Location:
Johnstown, PA, USA
Posts:
45
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Good day mremeach. I've just discovered (thanks to a customer informing me) that the calandar has ceased functioning in IE. Works fine for me in FF but not in IE. I have not made any changes to any files prior to this occurance. In IE the text block shows up but the calendar icon does not. And any attempt to enter the date in the text block is of course futile.

Any thoughts? I'm using version 2 released prior to the time version 2.2.

15 Mar 2009, 11:17 PM
#178
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

duffy:

... In IE the text block shows up but the calendar icon does not. And any attempt to enter the date in the text block is of course futile.

Any thoughts? I'm using version 2 released prior to the time version 2.2.

What version of IE are you using? What is your OS platform? Windows? Mac? Linux?..

16 Mar 2009, 12:12 AM
#179
duffy avatar

duffy

New Zenner

Join Date:
Aug 2005
Location:
Johnstown, PA, USA
Posts:
45
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

I'm using IE 7 on Windows XP Pro and my cart is hosted on Linux. I have no idea what platform and operating system the customers that were not seeing the calendar are using.

30 Mar 2009, 6:55 PM
#180
prosam avatar

prosam

Zen Follower

Join Date:
Jun 2004
Posts:
118
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

That's a bummer and i will look into it within the next day or so.. It's most likely just an incompatible or bad tag somewhere.
Hey MrMeech,
Did you ever figure out the issue with the calendar button not showing in Firefox?

I'm running Firefox 3.0.7 and this is what I see on my screen:
http://clip2net.com/clip/m7120/1238439245-clip-6kb.png

In IE7 I see the button just fine:
http://clip2net.com/clip/m7120/1238439309-clip-6kb.png

You mentioned a bad tag, what do you mean by that?