Adding A Delivery Date
Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive - and you get a link from my homepage to your site. Cheers!
Over in the official osCommerce Forum, someone wanted the ability to add a "delivery date" that the customer can choose to select.
I have no doubt that there is a pre-existing contribution that can handle this, bt I thought it would make an interesting exercise, to see if I could come up with something that is coded cleanly and, most importantly, works easily…
Introducing the Club osCommerce Date Picker!
This little mod took me about 15 minutes work. I added a text input using javascript on the checkout_shipping page, and created the value as a session. I input the session value into the database. Then pull the value from the database to display the customer preferred delivery date in the Admin area.
Here's a short video showing this;
If anyone wants the code, please let me know – it does involve some changes to core osCommerce files (though the changes are very minimal. If anyone wants it, I'll package it up ready for download.



Hello, I need the code. I appreciate if you could help me
Best
Comment by Nurlan — October 25, 2008 @ 11:05 pm
Nurlan – here.
Comment by Gary — October 27, 2008 @ 8:57 am
Hello
I could really use that script if you would be so generous as to share it. My shopping cart is very modified, but that feature is very needed. Thank you so much for the help.
Comment by Barbara Fena — December 3, 2008 @ 5:59 am
Hi, This might be just what I need for a florist site. Can you send it to me please
Comment by Rob Lancaster — January 16, 2009 @ 10:55 am
http://addons.oscommerce.com/info/6178
Comment by Gary — January 16, 2009 @ 11:58 am
Gary,
Thanks for pointing me to the download. I have your Delivery Date picker installed at my site. It works well!
Just a couple of more questions.
1. How do I change the resulting field date format from 2009-01-20 to 20-01-2009?
2. How do I change the date picker so that Saturdays are selectable for delivery?
3. Is there any way I can exclude specific delivery dates such as public holidays?
Regards,
Rob
Comment by Rob Lancaster — January 20, 2009 @ 4:34 am
Hi,
I have installed your Delivery date to my site but currently the calender is not appearing upon mouse-over or even which I clicked on the input box.
Do you have any idea what I can do to solve that?
With Regards,
Ruth
Comment by Ruth — October 15, 2009 @ 3:04 am
Hi Ruth
Incorrectly installed, or you have javascript turned off in your browser.
Cheers, Gary
Comment by Gary — October 15, 2009 @ 11:47 am
Please, could you send it me to me please?
Comment by Martin — October 18, 2009 @ 3:58 pm
Hi Martin – download from http://addons.oscommerce.com/info/6178
Comment by Gary — October 26, 2009 @ 6:26 pm
I have a cre loaded website, will your shipping date chooser work with cre loaded sites? If so, please send me your Date picker add on. Thanks.
Comment by sam — December 5, 2009 @ 8:02 am
Sam;
1. don't know
2. download at the oscommerce contributions area
Comment by Gary — December 5, 2009 @ 11:16 am
I'd GREATLY appreciate the source code for this. I need something that is compatible with my current OS Commerce site, V2.2 RC2 and I think this is it.
Thanks!
Comment by Trevor Hunt — January 26, 2010 @ 4:02 am
Hi, This might be just what I need for a florist site. Can you send it to me please
Comment by Shankar — February 8, 2010 @ 7:25 am
Shankar – download at the oscommerce contributions area – if you need help with installation or changing the codebase, please email me on oscshops@gmail.com and I will be happy to quote you.
Comment by Gary — February 8, 2010 @ 2:54 pm