Please add your modules to the Downloads Section.
Please add your modules to the Downloads Section.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
It's now in the Downloads section over here
Included in the zip file are two folders with separate modules - one is for adding only the Ship Order Date and the other is to add both Ship Order and Cancel Order Date.
Great! I haven't had time yet to compile this into a distributable contribution.
Thanks for this contribution, James!
Hey Everyone -
I have applied this mod to a site and found that it still needs a bit of work - but it has an Excellent start!
So, first thing that i'd like to tackle is the fact that the emails are not including the delivery date.
I'm hopeing that someone would be able to explain how and where the email arrays are formed. Anyone?
I should clarify this post, as my problem is not very clear:
When order related emails are sent, the place where the delivery date information is supposed to be simply prints out on the email as: EMAIL_TEXT_DELIVERY_DATE
I am pretty sure the problem resides in the orders.php file either on the admin side or on the catalog side, but i cannot figure out why. I am not yet familiar with the email data-flow.
On the contrary, the order date information appears correctly on the order information (invoice, packing slip, edit order) pages when logged into the admin.
Any help or pointers would be greatly appreciated.![]()
Well, i'm not sure if anyone is listening out there - but i just did a lot of work on this mod over the past two days and now have an updated version 100% ready to be uploaded. HOWEVER, i am waiting to upload it to the community - i wrote an email to Ajeh and Kim explain why i am not uploading it yet, and i will append that email to the end of this post for everyone to read and give their input. I do not want any hard feelings.
I've notated this all in the readme.txt file, but so that everyone knows what is ready to go:
Ok, now, for the email to Ajeh and Kim:HISTORY:
03/24/2008:
Updated to fix a number of issues in code and add a couple other features (By MrMeech):
- Added File (includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php) - Added Delivery Date to display on checkout confirmation page
- Added File (includes/languages/english/YOUR_TEMPLATE/checkout_confirmation) - has Delivery Date define
- Added File (email/email_template_checkout.html) - to show delivery date on email generated during checkout, in addition to when orders are updated via Admin
- (admin/includes/classes/order.php) - Fixed "info" array "delivery_date" to "order_delivery_date" to match format of the rest of the array and unify all code references to the array. Also some code would reference "delivery_date" and some would reference "order_delivery_date", so everything is now "order_delivery_date".
- (admin/includes/languages/english/orders.php) - Added missing email define
- (admin/invoice.php) - Line 150 - changed to "order_delivery_date"
- (admin/orders.php) - Removed extra space in string and updated to correct path (line 108); Updated line 117 to "order_delivery_date" from "delivery_date"; Updated line 414 to reflect similar changes
- (admin/packingslip.php) - Line 147 updated to "order_delivery_date"
- (includes/classes/order.php) - Line 924 - Was missing the HTML variable for HTML email output
- Added contribution info to the comments at the top of every file (except the emails) for easier version tracking down the road.
- Updated this file (readme.txt)
03/13/2008:
First compiled release of this modification
02/13/2008:
Peter Martin's Post to the forum of the initial code
Kim (and now Linda, too!),
You haven't responded yet, but that's a good thing in this situation as i figured out how to update existing contributions.
However, i come to you now with a situation a little out of the norm - please read this message all the way through.
Based on this thread: http://www.zen-cart.com/forum/showthread.php?t=88550
...this contribution was born: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_ id=961
Unfortunately this contribution seems to have been slapped together in hyperspeed and i really feel as if it should be split in two. Right now it contains both the "Ship Order Date" and "Cancel Order Date." Confusingly, the "Cancel Order Date" folder is supposed to include the ship order date folder mod... Aside from that, this mod is designed to add a DELIVERY date, not a SHIP date.
Additionally, If you compare on the two top-level directories ("ship-cancel date" and "ship date") you will find that, aside from the SQL query, they are identical (unless i'm crazy and missed something). My file compare program (Kdiff3) noted that the one template override file for the checkout differed, but upon viewing them, they were carbon copies of one another.
I have spent a number of hours looking at the code for this, and while it is 90% complete, it has a fatal last 10%, with errors that will translate all the way to email outputs. There are a handful of other mishaps in the code, but the purpose of this message is not to review all of them...
I have updated the code to work on my site, and now that i know where all of the errors are, it will take me only a few minutes to go back through the current contribution code to fix it for the community. I can have this ready to go in a day (since i'm pooped now and am calling it quits for the night).
So, this is what i propose:Please inform me of your thoughts on all of this and what plan of action you believe is best.
- Renaming this contribution to "Order Delivery Date" - or delete/freeze this contribution to avoid the confusion that is likely going to ensue.
- Depending on the action that you take: If you rename the contribution, i will upload the fixed code directly to the contribution, or; If you delete/freeze the contribution, i will make a new one.
- I also really believe that a new support thread with a more relevant title (ie: "Order Delivery Date" instead of "Ship Date") should be formed - i will be glad to do this - just looking for backup on it.
I was able to send email with delivery date as well in the admin as well.
In the orders.PHP, we have written
EMAIL_TEXT_DELIVERY_DATE . ' ' . zen_date_long($check_status->fields[' delivery_date']) . "\n\n"
but we did not add this field to the $checkstatus=$db->Execute
and one more thing, we did not define EMAIL_TEXT_DELIVERY_DATE under /admin/languages
It worked for me, if any qiestions I can be contacted kishore_veeramallu###################### or 630-235-9772
Thank you pe7er for lot of coding there...
has anyone tested this with super orders?
Hello All,
I tried to install this template and copied all files into the directories and it looks like it was working for showing the Desired Delivery Date on the shipping page but i see nothing about cancel date anywhere.
Is there something I am missing or is it not working? Has anyone else had a problem with this? I am using Zencart 1.3.8.
Thanks for the help.
Bookmarks