Delivery Time in osCommerce

By | February 26, 2010

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!

15 thoughts on “Delivery Time in osCommerce

  1. Gary Post author

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

  2. Diego

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

    Thanks.

  3. Ralfm

    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

  4. Gary Post author

    Thank you for nothing 🙂

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

  5. parry

    Thank you Gary for installing them for me!

    It’s great 🙂

  6. Stan

    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

  7. Gary Post author

    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

  8. Gary Post author

    Hi, means you have not installed correctly. Are you using paypal as the payment method?

  9. Paula

    Hi, Is that a way to turn some products off on special date, like in such a way that products in category 1 are not available to delivery on 31Jan 2014 but products in category 2 are available on the same day. Need help urgently.

Leave a Reply

Your email address will not be published. Required fields are marked *