About Club osCommerce

Showcasing osCommerce…the good, the bad and the ugly!

Follow osc_pro on Twitter

Delivery Time in osCommerce

Written By Gary on Feb 26 2010 · Comments (11) Follow osc_pro on Twitter

The other day, I was asked about the possibility of including a time selection field in the shipping page of an osCommerce site. A typical example would be a delivery service such as a flower shop.

This is very alike my previous code for selcting a delivery date which works well. Basically, all I had to was copy that but make it "time" instead of "date".

With some Googling, I found a nice jQuery based timepicker which i integrated into the checkout_shipping page.

So, the checkout_shipping.php after the changes;

In the admin, on the orders.php details, it looks like this;

Obviously I chose that date and time in the checkout page. Th selcted date and time also shows in the customer facing order history page(s) as well. Sweet!

As you can see I prettied up the time selector by adding a clock image. Looks pretty nice!


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!


11 Comments

  1. Hi, where can i find this contribution?

    Comment by Maano — June 10, 2010 @ 2:45 pm


  2. I never made it into a contribution. It's really easy though if you give it a go.

    Comment by Gary — June 11, 2010 @ 12:33 pm


  3. Hi, I'm in need of contribute as this. Could I send it via email?

    Thanks.

    Comment by Diego — July 21, 2010 @ 11:02 am


  4. Hello Gary

    Your delivery time is very good, congratulations, but i have now a problem:

    How can i integrate the jQuery based timepicker into the checkout_shipping page?

    Thank you very much
    Ralf

    Comment by Ralfm — July 21, 2010 @ 1:01 pm


  5. Guys, you need to install the oscommerce datepicker http://addons.oscommerce.com/info/6178 and then repeat for the timepicker http://labs.perifer.se/timedatepicker/

    It's not difficult. If you want it all installed for you, email me and can do that at very low cost.

    Comment by Gary — August 4, 2010 @ 10:58 am


  6. Thanks for nothing. :-(

    Comment by Ralfm — August 4, 2010 @ 11:11 am


  7. Thank you for nothing :)

    Do not get Open Source, GPL and Free confused. You are running a business as is everyone else.

    Comment by Gary — August 4, 2010 @ 11:20 am


  8. Thank you Gary for installing them for me!

    It's great :)

    Comment by parry — October 1, 2010 @ 1:28 am


  9. Thank You Parry

    Comment by Gary — October 8, 2010 @ 9:39 am


  10. Hi,

    Can we prevent costumers to book twice the same time?

    I mean if the costumer 1 booked tuesday at 10 am I would like to block this delivery time.

    Thank you

    Stan

    Comment by Stan — December 23, 2010 @ 7:19 pm


  11. Stan – that's possible, with a lot more coding. The way it's done now does not track time slots, so would need a way of marking slots which have been bought and not show them on a per product basis. Not straightforward. If you want to explore it further and get a quote, email me on oscshops@gmail.com

    Comment by Gary — December 24, 2010 @ 9:53 am


Leave a comment

RSS feed for comments on this post

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!