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
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
never mind...stupid mistake on my part!!! all fixed!
I got the same problem and now I fixed it with the help your guide.
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).
I attached screen shoot from one online shop.
Wish all of the best for you. Thanks in advance!![]()
Wow! I didn't see that! Great update and thanks for that. I'll test and come back here for feedback.
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!![]()
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!
Thank you so much for really quick reply Mr Meech!!
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!!
[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!]
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
Last edited by plbs; 24 Jan 2009 at 12:52 AM. Reason: didn't finish entry
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
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....![]()
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
Bookmarks