Magento: Customer Desired Delivery Date Module
This Magento Module allows you to add a date picker to the checkout process, which the customer can use to input a desired delivery date. There is minimal setup required. You will need to add the supplied code to your template pages in order to display the date-picker on the checkout process and add one line of code to the admin template. As soon as I find a convenient way to add the necessary block to the template files with out having to modify the template files I will remove the manual part of the Module.
Here is a link to the modules page: Delivery Date Plugin
To Add to email templates: (provided by Magento user: mrgniarf)
You can modify yourtheme/yourdesign/template/email/order/items.phtml and before :
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7;background:#f8f7f5">
<thead>
<tr>
<th align="left" bgcolor="#d9e5ee">__('Sku') ?></th>
<th align="left" bgcolor="#d9e5ee">__('Item') ?></th>
<th align="right" bgcolor="#d9e5ee">__('Subtotal') ?></th>
<th align="center" bgcolor="#d9e5ee">__('Qty') ?></th>
</tr>
</thead>
Add:
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<thead>
<tr>
<th align="left" width="100%" bgcolor="#d9e5ee">__('Desired Arrival Date') ?></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" style="padding:7px 9px 9px 9px;border:1px solid #bebcb7;border-top:0;background:#f8f7f5">
helper('deliverydate')->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
</td>
</tr>
</tbody>
</table>
<br>

39 Responses to “ Magento: Customer Desired Delivery Date Module ”
May 3rd, 2010 at 3:31 am
Great module. Works perfectly under 1.4.0.1CE.
Is it possible to get desired delivery date in transactionnal email ?
May 3rd, 2010 at 7:08 am
Hey Ben,
You can get the date into an email template using
{{var order.getShippingArrivalDate()}}This will probably be an un-formatted datetime string, so I believe that in transaction email you could format it like so:
{{var order.getShippingArrivalDateFormated(’long’)}}Let me know if this works for you.
May 22nd, 2010 at 3:01 pm
Thanks a lot for your module. Works like a charm.
I’ve tried to add the date into an email template (order).
With {{var order.getShippingArrivalDate()}}
I get : 2010-05-31 00:00:00
And with {{var order.getShippingArrivalDateFormated(’long’)}}
I get nothing
Have you got an idea ?
May 22nd, 2010 at 3:02 pm
an idea to get only 2010-05-31
May 23rd, 2010 at 5:13 am
another request please :
how can I get delivery date in progress column during order
in :
>> app/design/frontend/default /default/template/checkout/onepage/progress
doesn’t work with :
<?php echo "".$this->helper('deliverydate')->__('Desired Arrival Date').": ".$this->helper('deliverydate')->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
Thanks a lot
May 23rd, 2010 at 12:02 pm
@Gaebarre: For now you should be able to edit the email templates and use:
helper('deliverydate')->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>To place the delivery date into the template.
I will need to get back to you regarding getting the delivery date into the progress block. That will probably take editing the layout xml file.
May 26th, 2010 at 9:04 am
HI Mike
where to put this code in ?
helper(‘deliverydate’)->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
defiantly not in email template
May 26th, 2010 at 9:12 am
Hey Marcilud,
Please see the end of the post. I have updated it with this information.
May 28th, 2010 at 12:01 pm
For some reason when I add this module. On the one page checkout, after choosing date and clicking continue I get redirected to the shopping cart, any ideas? Thanks.
May 28th, 2010 at 12:20 pm
Hmm.. That is strange.
1. Is the site online so I could see this bug?
2. Does your cart contain all the products or is it empty after you get redirected?
3. Does this happen when trying to submit the order or when moving to the next step in the checkout process?
4. Does this happen in all browsers?
5. If you use FIREBUG and watch the console, when the background ajax calls fire, do any result in a 404 error?
June 3rd, 2010 at 4:35 pm
Hello,
Module is awesome! I would like change the text from “Desired Arrival Date” to “Delivery Date” & Also I would like to change comments” Please use the calendar icon to select your desired arrival date or leave blank for ASAP” as well. Is it possible? Please help!
June 6th, 2010 at 10:09 am
Hi
Music : change comments in
>> app/design/frontend/default/default/template/deliverydate/onepage/deliverydate.phtml
Mike
Sorry but can’t place the delivery date into the template. (html) with
helper('deliverydate')->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
Thanks
June 14th, 2010 at 10:32 am
Hi,
I have installed on Magento 1.4.1.0 through magento commerce. I don’t see this datapicker when I do the check out. Is there any changes I have to do?
Thanks
Robert
June 14th, 2010 at 11:03 am
Hi Robert,
Yes you will need to add a line of code to a template file.
In the modules main folder there is a readme.txt file that has directions on doing this. (app\code\community\Sharpdot\Deliverydate\ReadMe.txt)
June 15th, 2010 at 9:00 am
Hi mike ,
I have installed your module but cannot get it working …I have added the code to the template file as well …need help
June 15th, 2010 at 9:17 am
Hey Jesse,
Lets get a little background:
1. What Magento Version do you have?
2. Are there any error messages?
3. What template files did you update to try to get the code to show up.
4. Are there any JavaScript errors being thrown on the checkout page?
5. Is the site web accessible(so i can take a look).
June 16th, 2010 at 5:25 am
hi,
the magento version is 1.4.0.1 , i did not get any error messages nor I got the output on the checkout process .
i have added the code to shipping_method.phtml and deliverydate.xml , there are no java script errors on the checkout page ….
yes the site is online …please have a look at giftasmile.com and a review on the full site will be greatly appreciated .
June 23rd, 2010 at 7:18 pm
Hi,
Is there any way to validate the date?. How do I disable the past dates? I want to force my user to select the date after 2 days from the current Date.
Please advice me.
Thanks
Robert
June 24th, 2010 at 3:32 pm
Hi Mike,
Thanks for posting this. I’m having a little trouble getting this working on Magento 1.4.1.0. Will it work on this version? I can see the delivery date is being saved to database but on the backend it always displays as:
Desired Delivery Date: No Delivery Date Specified.
Could this be because of the new database structure. I would be greatly appreciative of any advice.
Regards,
Matt.
June 24th, 2010 at 4:07 pm
@Matt – Are you using code like this to display it in the back end?
<?php echo "".$this->helper('deliverydate')->__('Desired Arrival Date').": ".$this->helper('deliverydate')->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
Check to see that “$_order->getShippingArrivalDate()” is populated, that could be the issue. I have tested it on 1.4.0 and don’t see why 1.4.1.0 would be any different.
June 25th, 2010 at 1:58 am
Hi Mike,
Thanks for the reply, I added the code:
getShippingArrivalDate();if (isset($rawDate)){
echo 'The date is set, it is'.$rawdate;
}
else {
echo 'The date is not set';
}
?>
It seems that it isn’t populated.
Matt
June 25th, 2010 at 2:00 am
There’s a bit missing from that, the first line is
$rawDate = $_order->getShippingArrivalDate();June 27th, 2010 at 8:55 am
Hi Mike,
I dont want my user select past dates. How can I do this?
thanks
Robert
June 27th, 2010 at 10:51 am
Robert
add this in deliverydate.phtml
function ourDateStatusFunc
if (((date.getTime() - today.getTime()) / DAY) <= -1 ) return true;
else return false;
June 27th, 2010 at 10:55 am
Lot of answers at
http://www.dynarch.com/projects/calendar/old/
July 5th, 2010 at 12:03 pm
Mike can you please clearly tell me how to get the delivery date and the date picker displayed in the shipping information step because i want to remove the shipping method because it is free on my website
Please help me out with all the steps that would be needed ( all the details about the filed to be edited and what has to be changed in them)
regards ,
jesse
July 5th, 2010 at 1:35 pm
@Jessy – You will need to edit/override the deliverydate.xml file and change it to the controller action you want to use(shipping info).
Reference the layout guide for help – http://www.magentocommerce.com/design_guide/articles/intro-to-layouts.
I am pretty booked up on my time so I can not go through and test making a change to do this, but if you don’t figure it out then You may want to submit a RFP and I could finish the changes. http://www.sharpdotinc.com/contact/
July 26th, 2010 at 3:09 pm
Did any one managed to solve the problem on 1.4.1.1?
I get “Desired Arrival Date: No Delivery Date Specified.”
Thanks,
Ron.
August 17th, 2010 at 7:10 am
Hi,
has anyone extended the extension to work on multishipping? I stuck on saving more than one address…
Greetings,
Oliver
August 27th, 2010 at 9:40 am
Hey Mike,
I got also the same problem “No Delivery Date Specified” in admin, while it has already been specified.
I had placed the code as per readme.txt file. But still getting the above message in admin.
It looks like it’s not inserting the value in database. I checked the sale_flat_quote table it has shipping_arrival_date column but its NULL. I tried to edit that row manually to set the date but still it’s not showing in admin section.
Please help me fix this issue. Thanks a lot
August 27th, 2010 at 10:01 am
@Ravi: What Version of Magento are you using?
August 27th, 2010 at 10:03 am
Hey Mike,
Thanks for a quick reply. I am using 1.4.1.1 version.
Sorry I forgot to mention it.
Thanks
August 27th, 2010 at 10:04 am
Hi Ravi,
You need to add the column to sales_flat_order table as in this version magento takes it from there.
August 27th, 2010 at 10:25 am
Thanks for the Reply Ron. I will need to update the module to fix this.
August 27th, 2010 at 10:26 am
Hey Ron,
Thanks for reply.
I had inserted new column “shipping_arrival_date” in sales_flat_order tablse.
When I placed a test order with delivery date. The column has null value, but when I edit manually and set the date, then I can see it in admin.
I think its not populating in sale_flat_order table. Do I need to change any other setting in any xml file or .phtml file?
Thanks for all your help.
August 27th, 2010 at 10:28 am
Hi Ravi,
Send me your email, I’ll send you my code.
Ron.
August 27th, 2010 at 10:30 am
Hey Ron,
Please email me at ravig@ironwoodcapital.net
I need to say that this thread is more active than the Magento’s community.
Thank you Ron. I really appreciate your help.
September 4th, 2010 at 2:13 am
I absolutly dont understand why u publish this. Its not ready for copy & paste. No Starting php-tags,”echo”’s and no “$this->”.
September 5th, 2010 at 11:23 am
Looks like the WYSIWYG Messed up some of the tags and code.