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!