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

Order Delivery Date Support Thread

Views: 162,562

Results 141 to 160 of 544
7 Dec 2008, 8:45 PM
#141
mrmeech avatar

mrmeech

Zen Follower

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

Order Delivery Date Support Thread

cjacin75:

I'm having a problem now with the desired delivery date. when customers want delivery next day in the calendar can't choose next day only thre days after and more but bot the next day or the next couple of days. How can i make it avaliable same day or days after "today" due to we work with flowers and we have option for same day delivery before 2pm weekdays and before 12pm on weekends. Could somebody help me out with this one because of the season i want to have it ready . Thank you in advance for your time and for your :(help.

Click on page 1 and read post #7 ... or here's a link to it:
http://www.zen-cart.com/forum/showpost.php?p=537518&postcount=7

7 Dec 2008, 8:56 PM
#142
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

Also, you edit the number of advance days in includes/modules/pages/checkout_shipping/jscript_calendar_head.php.

Directions are included within the file.

7 Dec 2008, 11:48 PM
#143
cjacin75 avatar

cjacin75

New Zenner

Join Date:
Nov 2008
Location:
USA, New York
Posts:
28
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

THANK YOU very much now i'm almost ready to go with my business, i'm happy that you helped me out ....well if you can give a hand with my last question will be great but if not is ok u help me a lot with this calendar because i was needing a calendar for this web site . My question is how can i remove the category, information, bestseller,sideboxes out of checkout pages i mean only from checkout pages and keep the imagen of the product that a customer is buying until the end well not till the complete end of the process but at least until the billing information is required?? can be done here in zen cart???

8 Dec 2008, 12:31 AM
#144
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

cjacin75:

THANK YOU very much now i'm almost ready to go with my business, i'm happy that you helped me out ....well if you can give a hand with my last question will be great but if not is ok u help me a lot with this calendar because i was needing a calendar for this web site . My question is how can i remove the category, information, bestseller,sideboxes out of checkout pages i mean only from checkout pages and keep the imagen of the product that a customer is buying until the end well not till the complete end of the process but at least until the billing information is required?? can be done here in zen cart???

I would suggest that you first search the forums for an answer. This thread is only for order delivery date support and while the module is in the checkout area, your question pertains to the bigger picture of zen cart. Best of luck!!

9 Dec 2008, 3:18 AM
#145
amatkins avatar

amatkins

New Zenner

Join Date:
Feb 2008
Posts:
26
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Mr. Meech -
Can you point me in the correct direction -- everything displays fine in admin, but the pull down does not display on the shipping page. What file do I need to tweak as modules>pages>checkoutshipping did not do the trick

9 Dec 2008, 3:38 AM
#146
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

AMATKINS:

Mr. Meech -
Can you point me in the correct direction -- everything displays fine in admin, but the pull down does not display on the shipping page. What file do I need to tweak as modules>pages>checkoutshipping did not do the trick

Assuming that you don't have any other order modules installed, it sounds like you might have a file or two in the wrong directory. I would suggest doing a preliminary super close check that your files are in the right place and have appropriate file permissions and such..

9 Dec 2008, 4:01 AM
#147
amatkins avatar

amatkins

New Zenner

Join Date:
Feb 2008
Posts:
26
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

I have no other modules installed that connect to the shipping pages, however it is still not displaying and I have went through the install twice, any suggestions???

9 Dec 2008, 3:35 PM
#148
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

Amatkins,

If you can supply the website address i will be glad to take a look at your checkout page. If you're not comfortable or don't want to post it on the forum here, PM it to me and i'll respond back via the forum so others can still benefit from our conversation. :smile:

10 Dec 2008, 10:16 AM
#149
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Any updates on the M-D-Y to D-M-Y issue ? (see above)

10 Dec 2008, 2:49 PM
#150
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

schoolboy:

Any updates on the M-D-Y to D-M-Y issue ? (see above)

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.

17 Dec 2008, 12:52 PM
#151
maccon avatar

maccon

New Zenner

Join Date:
Sep 2008
Posts:
49
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hey, im getting TABLE_HEADING_DELIVERY_DATE displayed on checkout stages instead of the Desired delivery date text - anyone any ideas why or how to fix this??

cheers

17 Dec 2008, 1:46 PM
#152
maccon avatar

maccon

New Zenner

Join Date:
Sep 2008
Posts:
49
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

never mind...stupid mistake on my part!!! all fixed!

22 Jan 2009, 12:26 AM
#153
mhawsayar avatar

mhawsayar

New Zenner

Join Date:
Jan 2009
Location:
Moscow, Russia
Posts:
3
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Your database probably doesn't have the "zen_" prefix on each table.

Try the attached SQL file..

I got the same problem and now I fixed it with the help your guide. :D:D

Thank you so much mrmeech! Much appreciate!!

This plugin is really great and work awesome. And thanks for contribution of those useful plugin for community!!

If you don't mind, I'd like to request some additional feature for future release. It's about delivery time. I think it will really helpful for some sensitive products shops (eg, flowers shop.. etc). :smile:

I attached screen shoot from one online shop.

Wish all of the best for you. Thanks in advance! :D:D:D

22 Jan 2009, 2:29 AM
#154
mhawsayar avatar

mhawsayar

New Zenner

Join Date:
Jan 2009
Location:
Moscow, Russia
Posts:
3
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

Friends!! A whole page and a half of responses happened and i didn't receive a notification of a new post until today!!! How that happend, i have no clue. But it's the truth!

Anyway, i DO have a variation with a time feature that will work, but is NOT implemented in the best way.

Here's the 2 cents of background on why the time part is little "ghetto-implemented": Basically when i went to do this i COULD NOT get the javascript to consistently merge the date with the time and have it insert into the database as a "datetime" record. I ran into huge problems with the fact that the zen's checkout uses css buttons combined with a function to call/create the "continue" button image. Additionally, when i went to use a pre-made date and time picker javascript object, i couldn't get that to work either. Forgive me!!

I will attach the package as is, which should work (provided you don't have any other checkout mods already installed). In it you will see commented out code from when i was feverishly trying to get a smooth datetime feature working.

You are going to have to add times to the array - currently there is just 12:30 and 1:30, and the format must be in 24-hour format. You'll see when you get there. You can find it on the includes/templates/YOUR_TEMPLATE/template/tpl_checkout_shipping_default.php. It's around line 140 and looks like this:

<!-- Bof Order Delivery Date --> <fieldset class="shipping" id="delivery_date_details"> <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>

<label for="delivery_date_details">Date:</label>

<input readonly="readonly" id="date" name="order_delivery_date_day" type="text"> <select id="order_delivery_date_time" name="order_delivery_date_time"> <option value="">Select Delivery Time</option> <option value="12:30:00">12:30pm</option> <option value="13:30:00">1:30pm</option> </select> </fieldset> ```**THIS IS IMPORTANT: > BACK UP YOUR DATABASE FIRST!!! > **If you have this installed already, you will need to alter the zen_orders table in the database. You *SHOULD* be able to just rename the row "order_deliver_date" to "order_delivery_date_day" and change the type from datetime to date. (I'm *pretty sure* this will preserve the date data, but don't hold me to it!) Then you need to add another row called "order_delivery_date_time" and make the type as just "time". > The SQL file is attached, which should work if you haven't installed the Mod yet at all. > ** > And finally, KEEP THIS IN MIND: **A number of months ago i read (i think) Ajeh's (who is a zen cart official) response to someone asking when the next version of zen cart (1.4) will be out, and the answer was basically some time before the end of december 2008 - WHICH IS VERY SOON (assuming they are still on track). Although not in their roadmap, it is likely that the checkout code will be changed. > > Because of the 48kb limit on file uploads i had to split/zip up the package. :( Make a folder called includes and decompress the following in there: Classes.zip, languages.zip, modules.zip, templates.zip > > Let me know how this works out for everyone. :smile: >

Wow! I didn't see that! Great update and thanks for that. I'll test and come back here for feedback. :smile:

Just let me know one thing, I already installed this mod v2.2 (Only Date version) in my site. Do I need to remove it before re-installing with this one (Date & Time mod)? Or how can I install this new one without removing old? Just overwrite all old files? (sql, admin, email, includes..etc)

[I've no zen prefix in my database.]

Cheer! Thanks in advance! :smile:

22 Jan 2009, 4:06 AM
#155
mrmeech avatar

mrmeech

Zen Follower

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

Re: Order Delivery Date Support Thread

MhawSayar:

...I already installed this mod v2.2 (Only Date version) in my site. Do I need to remove it before re-installing with this one (Date & Time mod)? Or how can I install this new one without removing old? Just overwrite all old files? (sql, admin, email, includes..etc)

[I've no zen prefix in my database.]

The date with time version uses different database row names than the date-only version. These steps should provide you a rather easy roadmap for moving from version w/o date to the version WITH the date:

  1. Do NOT do this on a live site. And when you do, back up your site and database!!!
  2. log in to your database for your zen cart store via PHPmyAdmin
  3. Select the "Orders" table from the list of tables on the left.
  4. Scroll down to the bottom of the table, where you will see "order_delivery_date"
  5. Click on the pencil icon (it will say "change" when you hover over it)
  6. Rename it from "order_delivery_date" to "order_delivery_date_day" and click save.
  7. THEN copy and paste the SQL statement that is zipped up and attached to this post into an query window in PHPmyAdmin (you can access it via the button icons on the top of the left frame).
  8. Overwrite delivery date files with the delivery date w/time files.
  9. Test!
    Hopefully that goes smoothly for ya!
22 Jan 2009, 1:53 PM
#156
mhawsayar avatar

mhawsayar

New Zenner

Join Date:
Jan 2009
Location:
Moscow, Russia
Posts:
3
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech:

The date with time version uses different database row names than the date-only version. These steps should provide you a rather easy roadmap for moving from version w/o date to the version WITH the date:

[]Do NOT do this on a live site. And when you do, back up your site and database!!!
[
]log in to your database for your zen cart store via PHPmyAdmin
...................
Hopefully that goes smoothly for ya!

Thank you so much for really quick reply Mr Meech!! :D

Very clear instructions and really great help for me!!! I followed your instructions exactly and now installation is finished smoothly without any problems! Work Awesome!

Again appreciate for your works and helping others! You are the great man!

Wish all of the best for you!! :clap::clap::clap:

[I installed this modified version mod into my Online shop test version, and I edit to add some additional time intervals. I attach screenshoot to show how it's working Awesome!]

23 Jan 2009, 11:48 PM
#157
plbs avatar

plbs

New Zenner

Join Date:
Jul 2004
Posts:
5
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

mrmeech, awesome mod!

However, I've had two issues. Fixed one, still stumped on the other.

  1. 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.

  1. If a customer doesn't select a delivery date, I've verified that the field is NULL in the table. The date is also blank in all relevant emails. However, on the Admin Orders pages, any orders with a blank (NULL) delivery date appear with the delivery date 11/30/1999. Again, if a date WAS selected, the correct date appears. But if a date was NOT selected, and the table field is NULL, then the date 11/30/1999 appears, rather that it just being blank.

Any ideas on this one?

Thanks!
Steve

24 Jan 2009, 5:44 AM
#158
plbs avatar

plbs

New Zenner

Join Date:
Jul 2004
Posts:
5
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

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

Again, don't know if this is the optimal way to fix, but it has worked. Now, if there is no delivery date entered on an order, that field is simply blank on the Admin orders table, edit order page, invoice, packing slip, etc.

If there's a better, or more Zen-compliant way to do this, please advise!

Thanks,
Steve

30 Jan 2009, 3:36 PM
#159
cpixi avatar

cpixi

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Hi MrMeech- really appreciate the mod. It works like a charm, but 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.

Any help is much appreciated.... :huh:

3 Feb 2009, 9:29 PM
#160
gbrown77 avatar

gbrown77

New Zenner

Join Date:
Dec 2005
Posts:
5
Plugin Contributions:
0

Re: Order Delivery Date Support Thread

Ok, I am a little new to Zen Cart, but I have 2 clients who need this mod, both have different requirements, one is a flower delivery company, they would like to be able to schedule day and time.

Client #2 is an activity company how needs to schedule things like helicopter rides, and scuba diving. They need to schedule when things are going to happen.

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.

I would be happy to post a page on one of my websites which would gives all the instructions.

I am using Zen Cart 1.3.8a

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.

Could someone act as if you did not have to read all the threads, and just say, download this, back up DB, and install these then here is how to test, config, etc?

Thanks

George