-
Re: Order Delivery Date Support Thread
Oh, those ghost files are Mac-related as far as I can tell.
It doesn't SEEM that the PO module is interfering with anything, but I just have no idea. I would think that all other aspects of the form would be having problems instead of just this. Comments works fine.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
enchantedneedle
The calendar does work in IE, but not in FF. I was using FF to test it, my bad. Any ideas on the solution for the browser difference?
What version of FF are you using? and Mac or PC?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
juno
Oh, those ghost files are Mac-related as far as I can tell.
It doesn't SEEM that the PO module is interfering with anything, but I just have no idea. I would think that all other aspects of the form would be having problems instead of just this. Comments works fine.
Well, once there are any other modules in the mix, there are quite a lot of variables of things that could be wrong.
One thing you could do, however, is compare the file structure of your PO module to the file structure of the Delivery Date module to find out if there are any conflicting files in there. If so, let us know which files are conflicting and attach any PO files to your reply that are in question.
-
Re: Order Delivery Date Support Thread
I removed the PO module completely and installed the order delivery date contribution EXACTLY as written.
Still no dice. The date is just not coming over. I am receiving no errors.
Also, for what it's worth, the calendar also does not work in Firefox for me (Firefox 2.0.0.15 on a Windows box). It works fine in IE.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
juno
I removed the PO module completely and installed the order delivery date contribution EXACTLY as written.
Still no dice. The date is just not coming over. I am receiving no errors.
Do you get a blank screen? Or is it literally just the date not working?
Quote:
Originally Posted by
juno
Also, for what it's worth, the calendar also does not work in Firefox for me (Firefox 2.0.0.15 on a Windows box). It works fine in IE.
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.
-
Could the date entry be made mandatory?
Good day mrmeech. This is a great mod! I just updated to version 2 with the javascript calendar and noticed some strange behavior--from my customers, not the mod. They don't always enter a date:blink:. Consequently I get a date of Tuesday, November 30, 1999 by default.
I was wondering if there was a way to make the date selection required?
-
Re: Order Delivery Date Support Thread
Is it possible to feed the date to Interapptive Shipworks? I need to print the ship date on my invoices. This module is amazing! I appreciate the help.:lookaroun
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jbpounders
Is it possible to feed the date to Interapptive Shipworks? I need to print the ship date on my invoices. This module is amazing! I appreciate the help.:lookaroun
Hey there - Unfortunately i am not familiar with Shipworks. Additionally, this module is configured to allow a person to request the DELIVERY date, not the SHIP date.
As for having the imputed delivery date on the invoices - that's already in the contribution's code.
-
Re: Order Delivery Date Support Thread
Right, I understand...what's the difference between having it be a ship date and a delivery date? We only ship on mondays so I set up the javascript to eliminate all the days except monday. Well if we could figure out how to insert the date into the notes section it should make it into shipworks fine..just need to know how to do that :)
Thanks,
JBP
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
jbpounders
... if we could figure out how to insert the date into the notes section it should make it into shipworks fine..just need to know how to do that :)
Thanks,
JBP
That would take me a while to figure out how to do and i'm ridiculously busy right now, but i can point you in the direction that might lead you to an answer... which is to look over the CREATE function in includes/classes/functions/order.php. Or maybe it would be in the order.php file in the admin side?
Basically, i think you need to find the code that generates the comments when an order is submitted and put a line in there to suck the date from the order session and input it into the comments. Once you get that figured out, you will need to know exactly where and how shipworks is obtaining the comments information.
If you have a low enough order volume you can always open up each order and copy and paste the date into the comments field and make a new comment. But, that is clearly the ghetto and time consuming solution.
Honestly, it's slightly above my knowledge of the code that executes the order submission... maybe DrByte or Ajeh or one of the developers can guide you in a more refined direction?
Please let us know how you do with this and kindly post your solution on here for anyone else wishing to do the same thing down the line. :smile:
-
Re: Order Delivery Date Support Thread
Hi,
I'm having problems unzipping the download - it gives me 2 blank files when it's unzipped. Could someone send me a copy please?
Would be eternally grateful.
Cheers
Claire
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
cjsmiff
Hi,
I'm having problems unzipping the download - it gives me 2 blank files when it's unzipped. Could someone send me a copy please?
Would be eternally grateful.
Cheers
Claire
Hey Claire,
Are you on a pc/windows computer by any chance?
-
Re: Order Delivery Date Support Thread
Hi,
yes, laptop running windows vista.
Cheers
Claire
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
cjsmiff
Hi,
yes, laptop running windows vista.
Cheers
Claire
Hey Claire,
Are you still having problems with this? Sorry for the delay in responding.
-
Re: Order Delivery Date Support Thread
Is it possible to make the entry of the date mandatory, that is to say a required field?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
duffy
Is it possible to make the entry of the date mandatory, that is to say a required field?
Duffy,
The configuration of of the checkout form (using graphical submit button) as well as the read-only field, has provided a challenge that has defeated me in my couple of hours i just tried to make this work. Normally this would be a very simple task, but unfortunately given the circumstances here, it is not. :( I'm not saying it can't be done - because it can - but i think there are a few too many quirks for me to grasp what's (not) happening in the code. For starters, google "form image submit validation" and you can start reading the evidence that's out there that it's a pain. And that's not even taking into consideration the complexity of the code in zen cart.
I tried!!
-
Re: Order Delivery Date Support Thread
mrmeech,
Thanks for your efforts, truly appreciated.
-
Re: Order Delivery Date Support Thread
I am using the Fast and Easy Checkout mod for my sites and I noticed that this mod alters the checkout_shipping.php file but that file is not utilized in my checkouts now. How do you go about integrating this with FEC?
Thanks, I would LOVE to use this!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Doodlebuckets
I am using the Fast and Easy Checkout mod for my sites and I noticed that this mod alters the checkout_shipping.php file but that file is not utilized in my checkouts now. How do you go about integrating this with FEC?
Thanks, I would LOVE to use this!
Unfortunately i do not have the time right now to actually merge the contributions together, BUT - I can give you a roadmap to follow based on peeking at the FEC contribution files, so here it goes:
BACK UP YOUR DATABASE! Then back it up again, for good measure. I am not liable if your database gets messed up. (or anything else)
1) Install the SQL patch, which will add a row in the orders table to hold the delivery date.
2) Apply everything in the admin folder to your site's admin folder.
3) Update the email templates - this will reflect the delivery date on emails generated to the customer from when the order is processed, and when you choose to notify the customer when you update their status in the admin.
4) Upload includes/classes/order.php
5) includs/languages/english/YOUR_TEMPLATE/*.php
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Doodlebuckets
I am using the Fast and Easy Checkout mod for my sites and I noticed that this mod alters the checkout_shipping.php file but that file is not utilized in my checkouts now. How do you go about integrating this with FEC?
Thanks, I would LOVE to use this!
Unfortunately i do not have the time right now to actually merge the contributions together, BUT - I can give you a roadmap to follow based on peeking at the FEC contribution files, so here it goes:
BACK UP YOUR DATABASE! Then back it up again, for good measure. I am not liable if your database gets messed up. (or anything else) Absolutely DO NOT do this on a live store.
1) Install the SQL patch, which will add a row in the orders table to hold the delivery date.
2) Apply everything in the admin folder to your site's admin folder.
3) Update the email templates - this will reflect the delivery date on emails generated to the customer from when the order is processed, and when you choose to notify the customer when you update their status in the admin.
4) Upload includes/classes/order.php
5) includs/languages/english/YOUR_TEMPLATE/*.php
All of the language definitions are at the bottom of the files. Some of them repeat. You want to make sure that they are inserted into your FEC language files (which, as it is structured in the package, does not use a template override, which i would suggest). Some of the language definitions repeat depending on the page - just make sure you have one of each definition in the FEC language files. In other words, no repeats.
6) I am not 100% sure on this, but i think this what you need to do. Take everything in the includes/modules/pages/checkout_shipping folder and put it into the respective folders for the FEC pages where you want to have the delivery date calendar. I think this is probably INCLUDES/MODULES/PAGES/CHECKOUT for the FEC code. DO NOT OVERWRITE the HEADER.PHP file here!!! Open the Delivery date header up and find the noted edits and copy them into the FEC header.php.
7) Copy and add CSS from INCLUDES/TEMPLATES/your_template/CSS/checkout_shipping.css into INCLUDES/TEMPLATES/your_template/CSS/checkout.css
8) copy image files in the template folder - nothing overwritten there.
9) Adding the code in the template to display the delivery date code in the checkout: So, add this code somewhere WITHIN the "FORM" tag on the template file for FEC where you'd like to have the calendar displayed:
HTML Code:
<!-- 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 -->
and then add this to the template file where you'd like to have it reflected on the confirmation page:
HTML Code:
<?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 ?>
10) Configuring the calendar - this is done in the file INCLUDES/MODULES/PAGES/CHECKOUT_SHIPPING/jscript_calendar_head.php
Instructions are commented into the file itself.
Best of luck! :smile:
-
Re: Order Delivery Date Support Thread
Hi MrMeech.
I have been watching the devlopment of this mod from the pull down list to this current version - great work you've been doing.
I am still using the pull down list on my wholesale site and works beautifully - thank you very much. :clap:
I am planning to install the java version on the admin side to make things a bit easier for them there - I will let you know how it goes,
If anyone else needs a simple fix to edit the delivery dtaes on the backend drop me a line and I'll shoo the code across to you.
I have just installed the new delivery date mod on a site using the FEC mod, as seems to be the recent dicussion.
Your instruction to do this is completely correct, however the second part of 9) interferes with FEC code and is not really required, due to the way the FEC order confirmation page works.
BUT . . . we all know there has to be a problem somewhere along the line otherwise it would be too easy. My problem is I don't seem to be getting any date being posted to the database - no other errors.
In the order screen the delivery date displays as:11/30/1999 00:00:00
In phpMyAdmin the delivery date field is: 0000-00-00
In phpMyAdmin the field shows Null on orders prior to the install
I have run the SQL patch, the field is there - it's just not getting there.
The site is not "publicly" live yet, but is at: flowerbunch.com.au
Any ideas????
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
FuzzyBunny
Hi MrMeech.
In the order screen the delivery date displays as:11/30/1999 00:00:00
In phpMyAdmin the delivery date field is: 0000-00-00
In phpMyAdmin the field shows Null on orders prior to the install
I have run the SQL patch, the field is there - it's just not getting there.
I just took a look at your site, but could only go so far in the checkout process before requiring money. On the first checkout page where the popup calendar is seems to be ok. All the html and javascript is in place correctly. Does the date appear correctly on the confirmation page? I'm guessing this might have to do with the includes/classes/order.php file. If i were you i would take a VERY close look at that file. I don't remember if FEC overwrites it or not, but make sure you have all the delivery date changes that are in that file that come with the downloadable package for the Delivery Date module. You can find the changes simply by comparing the delivery date file to an original zen cart file using any code comparison tool.
Hopefully that will get you going in the right direction.
-
Re: Order Delivery Date Support Thread
Hi Mr Meech,
Thanks for having a look.
The FEC module does not have an order confirmation page as such, it just has a --\|/--\|/-- processing page.
The order class is the delivery date file in the module package in it's entirity, it is not overwritten by FEC.
For the time being I have just removed the delivery date option and told people to put it in the comments section, whic is the "old fashioned way" before your "AddOn" came into being.
I think it must be caused by something on the confirmation page, so this will be my next investigation.
Once again, thanks for the assiatance and the great addon.
-
Re: Order Delivery Date Support Thread
The order delivery date works great. I'm trying to add a lightbox-style ups time in transit map to the checkout_shipping page. The Dynamic Drive lightbox images works fine without the order delivery date feature and vice versa.
It as if the two features do not want to co-exist on the same page and are competing for the same initialization functions or variables. FireBug shows this error: My dev url is http://pexplumber.com. I've spent some hours debugging, but with no success.
I'm using simple seo url.
Any thoughts or ideas?
Thanks
-
Re: Order Delivery Date Support Thread
There is a conflict between the mootools and lightbox scripts. As mootools.js is a javascript framework, and so is prototype.js, it is a conflict between those two. There is a lightbox 'clone' called slimbox that uses mootools
It works great on the same page!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
sweettraders
There is a conflict between the mootools and lightbox scripts. As mootools.js is a javascript framework, and so is prototype.js, it is a conflict between those two. There is a lightbox 'clone' called slimbox that uses mootools
It works great on the same page!
Hey there - I'm a bit confused as to whether or not you got this worked out, because you say there is a conflict, but then say that it works great. There may be a slight chance that you're overthinking this or taking a more complicated approach than necessary - could you explain exactly what you're trying to do with the UPS transit map? Is it just one of those static maps of the country showing shipping times from your location?
From what i understand you want to have a UPS shipping map show up in a lightbox, more of less? If so, i can help you with hooking directly into the lightbox code to have it render on the screen as you wish. I'm a little confused as to why you'd want to have two JS codebases to render a lightbox when you should be able to just utilize the lightbox code. :smile:
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
Hey there - I'm a bit confused as to whether or not you got this worked out, because you say there is a conflict, but then say that it works great. There may be a slight chance that you're overthinking this or taking a more complicated approach than necessary - could you explain exactly what you're trying to do with the UPS transit map? Is it just one of those static maps of the country showing shipping times from your location?
From what i understand you want to have a UPS shipping map show up in a lightbox, more of less? If so, i can help you with hooking directly into the lightbox code to have it render on the screen as you wish. I'm a little confused as to why you'd want to have two JS codebases to render a lightbox when you should be able to just utilize the lightbox code. :smile:
What I ultimately need is shipping options available, based on temperature not exceeding 70F along the shipping route if the time in transit exceeds 24 hours. Nice try! :wink: We ship perishables, i.e. chocolate.
We found that customers pick the cheapest shipping and expect the delivery to be overnight from CA to NY. Therefore I want to show the static UPS ground shipping time in transit map when the shipping state is in the ground shipping zone.
I tried to enable the zen lightbox on the checkout shipping, but since it utilizes a conflicting js framework than the delivery date module, I (=lazy js coder) resorted to slimbox that use the same js framework as the delivery date module. I’m using mootools 1.2 and the compatible calendar.js on the checkout shipping page. I have two frameworks for the site, but only one active per slimbox or lightbox page.
You need to create an account to see the checkout shipping page. Our dev site is at pexplumber.com.
It will be great if you can enable the delivery module to work with lightbox on the same page. Thanks
-
Re: Order Delivery Date Support Thread
hi i have read the readme file and i dont know how to: Run the sql statement (shipdate.sql) in your database - If you do not have the "zen" prefix in your database tables, remove it from the SQL statement before executing it.
can anyone tell me step by step on how to do this?
Thanks
-
Re: Order Delivery Date Support Thread
hi again..manage to run the sql thingy...but now i have another problem..i am clueless abt where to install the rest of the files...cound anyone help ?
-
Re: Order Delivery Date Support Thread
Hi again Friends....Sorry..try to figure out where to add the files...and i finally got it...hehe:P
-
Re: Order Delivery Date Support Thread
MrMeech-
Thanks for your contribution is it awesome! One quick question and hopefully I didn't miss the answer in the midst of all the pages of this thread. How difficult is it for a customer to be able to select a delivery time as well as date? I have tried to figure this one out on my own with no luck.
Thanks again!
-
Re: Order Delivery Date Support Thread
MrMeech-
I would also like to thank you for this contribution. I too am having problems with allowing customers to select delivery times. What I am looking for is something as simple as a text box or drop down list along side or below the date. Also, if possible could the calender be included under a specific type of shipping module. Any help is greatly appreciated.
Thanks in advance,
Dave
-
Re: Order Delivery Date Support Thread
Hey,
I'm totally new to Zen-Cart. And I love your Order Delivery Date addon! It's God sent!
I've tried searching in the forum for a question I have in mind and most probably there's an answer somewhere in this forum. But I can't seem to find it. :dontgetit
Can someone please help?
Here's my question: When someone picks a date from the calendar, the default date setting is YYYY-MM-DD both in both the website and the emails sent. How can I change it to DD-MM-YYYY for both the website and email sent?
Thanks a million!
-
Re: Order Delivery Date Support Thread
I THINK this may help: (Make a backup first!)
In:-
includes/modules/pages/checkout_shipping
Open (in a suitable text/php editor)
jscript_calendar_head.php
Modify:
{ date: 'Y-m-d' } to { date: 'd-m-Y' }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
To get D-M-Y in your store, you need to modify the following sections in the english.php files in both your CATALOG and your ADMIN sections:
(This is the DEFAULT in a standard install of ZC and renders the date as M-D-Y)
PHP Code:
@setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
}
Look CAREFULLY at the above and apply the shown changes BELOW for UK-Styled D-M-Y format).
PHP Code:
@setlocale(LC_TIME, 'en_UK.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format dd/mm/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
}
As there is no over-ride system in ADMIN, just edit/over-write the original english.php file.
For /includes/languages/english.php , you should save the edited copy to your custom folder.
IMPORTANT NOTE:
Lower down in english.php, there are additional date defines (such as date of birth define text) that indicate to the shopper, that the format is MDY. Find these and alter them so they indicate the date format to now be DMY
-
Re: Order Delivery Date Support Thread
Hey,
Thanks for the kind advice.
I've made ALL the changes as per your suggestion. But it didn't work. :(
Yes. I'm VERY VERY sure that I've made all the changes as per your suggestion.
Although it worked during the Step 1. By the time it reaches Step 3, the date shows 16 years ahead.
Eg: When I selected 25 Nov 2008 at Step 1, it would show as 25-11-2008. But at Step 3, the "Desired Delivery Date" became
Tuesday 08 October, 2024!
The funny thing is that when customers receive their email, the desired delivery date shows: 25-11-2008! :shocking:
I'm clueless. Please help.
I appreciate you.
-
Re: Order Delivery Date Support Thread
There could be another YMD to DMY setting somewhere in the javascript file.
See if you can find it.
You can contact the author of the script at:
http://electricprism.com/aeron/
-
Re: Order Delivery Date Support Thread
mrmeech,
I see that a few others were wondering along with me if you had per chance had the time to add a time select option to your wonderfully made calander. Thanks again for your work!
-
4 Attachment(s)
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
Child_Of_The_Mind
mrmeech,
I see that a few others were wondering along with me if you had per chance had the time to add a time select option to your wonderfully made calander. Thanks again for your work!
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:
Code:
<!-- 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:
-
4 Attachment(s)
Re: Order Delivery Date Support Thread
...continued from my last post
...apparently in addition to the 48kb limit you can only add 4 files at a time - what a pain in the ##########_. Talk about file limits from the 1990's.
Here are the four files to go inside the INCLUDES folder..
-
How can i change the avaliability day
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.
-
Re: How can i change the avaliability day
Quote:
Originally Posted by
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/showpo...18&postcount=7
-
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.
-
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???
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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!!
-
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
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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..
-
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???
-
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:
-
Re: Order Delivery Date Support Thread
Any updates on the M-D-Y to D-M-Y issue ? (see above)
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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.
-
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
-
Re: Order Delivery Date Support Thread
never mind...stupid mistake on my part!!! all fixed!
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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:
Code:
<!-- 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:
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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:
- 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
- Select the "Orders" table from the list of tables on the left.
- Scroll down to the bottom of the table, where you will see "order_delivery_date"
- Click on the pencil icon (it will say "change" when you hover over it)
- Rename it from "order_delivery_date" to "order_delivery_date_day" and click save.
- 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).
- Overwrite delivery date files with the delivery date w/time files.
- Test!
Hopefully that goes smoothly for ya!
-
1 Attachment(s)
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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!]
-
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.
2. 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
-
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
-
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:
-
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
-
Re: 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
-
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.
-
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!!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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!!
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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:
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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:
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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?..
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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
Code:
$html_msg['EMAIL_TEXT_DELIVERY_DATE'] = EMAIL_TEXT_DELIVERY_DATE . ' ' . zen_db_output($this->info['order_delivery_date']);
to
Code:
$html_msg['EMAIL_TEXT_DELIVERY_DATE'] = strftime(DATE_FORMAT_LONG);
but his did not work. Can anyone help?
-
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..
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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:
-
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:
-
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.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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.
-
Re: Order Delivery Date Support Thread
That works perfect, thanks!
-
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.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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?..
-
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.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
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?
-
Re: Order Delivery Date Support Thread
Well, I kind of found a work around. Not sure if it will help anyone but here is what I did.
I loaded the jscript_calendar_head.php file right into the main jscript folder in my template folder. I know the code will show on every page and I doudbt this will be a problem so I see no harm. ALl I care is that I got it working in Firefox doing this.
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
prosam
Quote:
Originally Posted by
prosam
Well, I kind of found a work around. Not sure if it will help anyone but here is what I did.
I loaded the jscript_calendar_head.php file right into the main jscript folder in my template folder. I know the code will show on every page and I doudbt this will be a problem so I see no harm. ALl I care is that I got it working in Firefox doing this.
If it works when you move jscript_calendar_head.php to your template folder, then i'm wondering if you might have (or had?) a permissions issue on the normal folder somewhere, either on the folder itself or maybe the actual file?
But i'm a little dumbfounded as to why it would work in IE but not FF if it was a file permissions issue... For sake of figuring this out, maybe you could try putting the file back to it's normal home and simply take a look at the source code in the browser to see that it shows up correctly in the head tag.
Let me know if you'd like me to take a quick look at the site. Send me a private message with the site's URL if you're interested.
-
Re: Could the date entry be made mandatory?
Quote:
Originally Posted by
duffy
Good day mrmeech. This is a great mod! I just updated to version 2 with the javascript calendar and noticed some strange behavior--from my customers, not the mod. They don't always enter a date:blink:. Consequently I get a date of Tuesday, November 30, 1999 by default.
I was wondering if there was a way to make the date selection required?
I also have this same issue. Some customers don't always need to specify a date so when left blank I get the same date in the back end. I guess I can disregard the date for now but is there anyway for it just stay blank or print the current date instead of a date in the past?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mrmeech
If it works when you move jscript_calendar_head.php to your template folder, then i'm wondering if you might have (or had?) a permissions issue on the normal folder somewhere, either on the folder itself or maybe the actual file?
But i'm a little dumbfounded as to why it would work in IE but not FF if it was a file permissions issue... For sake of figuring this out, maybe you could try putting the file back to it's normal home and simply take a look at the source code in the browser to see that it shows up correctly in the head tag.
Let me know if you'd like me to take a quick look at the site. Send me a private message with the site's URL if you're interested.
I did look at the code in both instances but by having the js call in the jscript folder it loads the call above another js function for a google analytics module I have installed.
So I think the issue was that in FireFox mootools was not finding the definition after the analytics javascript. Not sure if that even makes sense. :)
-
Re: Order Delivery Date Support Thread
hi all,
guess i would need some help here..i installed the mod but i cannot select any date...mean i see the field but can't do anything with it..
I have also the easy checkout mod and folloeed the instructions..
thanks
KyLi
website is www.wittygift.com
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
kyli51
hi all,
guess i would need some help here..i installed the mod but i cannot select any date...mean i see the field but can't do anything with it..
I have also the easy checkout mod and folloeed the instructions..
thanks
KyLi
website is
www.wittygift.com
KyLi,
You're loading Mootools twice -- the first time in the head tag that it loads is where it's supposed to be for the delivery date mod to function. This is all good:
HTML Code:
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_a-mootools.js"></script>
<script type="text/javascript" src="includes/modules/pages/checkout/jscript_b-calendar.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() { myCal = new Calendar({ date: 'Y-m-d' }, { blocked: ['24-25,31 12 *', '0 * * 0'], direction: 3, draggable: false }); });
</script>
But further down in your head tag you also have this:
HTML Code:
<script type="text/javascript" src="js/mootools.js"></script>
The reason that the order delivery date has "a" and "b" in those two JS files is because if mootools loads after calendar.js it will not work. I suspect that that might be the problem.
-
Re: Order Delivery Date Support Thread
great it works ... thanks a lot
-
Re: Order Delivery Date Support Thread
hi,
thanks for the answer...now its almost working in fact..main issue is that the date do not appear on the mail... it's blank there is just delivery date :..... and on the order statu is november 1999 whatverver i put..
any idea ?
Kyli
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
kyli51
hi,
thanks for the answer...now its almost working in fact..main issue is that the date do not appear on the mail... it's blank there is just delivery date :..... and on the order statu is november 1999 whatverver i put..
any idea ?
Kyli
Kyli,
Well, first thing is to check that the date is actually making it into the delivery date table. I would suggest making an order with a delivery date, then looking in the database to make sure it got in there. It kind of sounds like it's not getting stored and the 1999 date is the php code not knowing what to do with the null value.
-
Re: Order Delivery Date Support Thread
hi,
yes your right, no value at all in DB...now i have to figure out where did it bug...
other help ? :-)
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
kyli51
yes your right, no value at all in DB...now i have to figure out where did it bug...
Start with everything on the public facing side (ie: anything NOT in the admin folder structure). If your calendar is now showing up and appears to be functioning OK in the browser on the checkout page, then take a close look at the class files to make sure no modifications were missed. As you are combining mods this is likely the case.
-
Re: Order Delivery Date Support Thread
Hello
Thank you very much for this great mode
I need though the fix of not choosing a date, any hlp on that?
Is there a way to set the next day date as default ?
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
joudesign
I need though the fix of not choosing a date, any hlp on that?
Is there a way to set the next day date as default ?
Instructions for (AND where you make code changes for) altering blocked dates are in:
Includes/modules/pages/checkout_shipping/jscript_calendar_head.php
-
Re: Order Delivery Date Support Thread
Thanks for the quick reply mrmeech
What I meant is setting the current date as default in case the client does not chose a date...
I have a 2nd question plz
I had the first version of the module (without the time option)
it was working pretty fine
Now when I added the last version (with the time option) I noticed that during the checkout..in step 2 (paiement information, I lose order information (products ordered, total and so on)
I am sure I did a mistake somewhere but I dont know where
Could you give me any guidance plz
Thanks in advance
-
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
joudesign
...What I meant is setting the current date as default in case the client does not chose a date...
I have another unreleased version that i've had 95% ready to go but have been having a hell of a time figuring out an email bug that happened along the way somewhere. That new, unreleased version with the email bug does have a fix for when people do not select a date and displays as "No Date Selected."
Quote:
Originally Posted by
joudesign
I have a 2nd question plz
I had the first version of the module (without the time option)
it was working pretty fine
Now when I added the last version (with the time option) I noticed that during the checkout..in step 2 (paiement information, I lose order information (products ordered, total and so on)
There is likely to be something messed up either with your includes/order.php file or something on your template pages during checkout... sounds like information is simply not getting the POST to the server and my guess is it is in one of those two spots - or both.
-
Re: Order Delivery Date Support Thread
Thanks a million
I re uploaded the orders file and it WORKS!
-------------
I wish you very good luck in fixing the email problem, this module is really great
re thanks
-
Re: Order Delivery Date Support Thread
Hi,
MrMeech a truly fantastic contribution! a lifesaver!
I am however having the issues i that have been raised before but i couldn't find an answer to
1. I am using Paypal standard checkout and the delivery address comes across fine but in the email to both me and the customer the field is displayed as EMAIL_TEXT_DELIVERY_DATE
2, i am trying to find a way of using the DD/MM/YYYY format as currently its reversed. No big issue as it works but just a little niggle!
Any help would be gratefully received!
Good Work!
Darren
-
Re: Order Delivery Date Support Thread
HI,
I have installed your Order Delivery Date Mod.., which worked fine until I then installed the side by side login Mod (Author: Eric Leuenberger - zencart optimization)..,
Now the delivery date calendar won't work....,in fact I can't checkout at all without this:
[1054 Unknown column 'order_delivery_date' in 'field list']
coming up with a lot of other "sql type"jargon..
How can I uninstall the delivery date Mod or (preferably) get them to work together?
(You can see this at http:www.itssouptoyou.com but you will have to go all the way through the process to see the issue to which I am referring.)
Thanks
-
Re: Order Delivery Date Support Thread
Just wondering if there was any kind of fix for the date showing in the admin order area as November 30, 1999 when no delivery date was chosen....not a major issue, but my client would love if that could be blank if no date was specified...
And THANK YOU for a great mod!!!
-
Re: Order Delivery Date Support Thread
ommannette
you need to add the field: order_delivery_date
to : orders tables I guess
can you copy the rest of the warning?