new Checkout page options

Posts: 11
Joined: 05/13/2008

My clients are looking to add a feature in the checkout page that allows the user to specify a day & time for delivery. They only deliver on monday, wednesday & friday, so we'd need these 3 choices as well as a time, either a single hour or a range of hours. Is this doable somewhere in the admin section?

Site is: http://www.justbeer.cn

Cheers,

Eric

Posts: 4747
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You might be able to use the COD payment method (in the uc_payment_pack.module) or the Lead Tracker contrib as starting points to get some pointers... it will involve using the checkout and order pane APIs. If you're looking to get the work done for a fee, you can PM me and I could work it into tomorrow's schedule.

Posts: 11
Joined: 05/13/2008

The COD payment method allows for date, but not time. We turned that off for the time being, as we don't need customers putting in some random Sunday afternoon when we're not delivering. (They never deliver during F1 or Rugby!) I'll try out Lead Tracker in the meantime.

Cheers for the fast reply!

Eric

Posts: 11
Joined: 05/13/2008

Hey kulvik, since the data gets saved/loaded with hook_order(), it's actually already going to be in the order object for use by your invoice templates. Dump out the array $order->lead to see the data.

What do you mean by this? I'd like this info to show on the customer order form & admin order form that's emailed out to each recipient. How do I dump out the array? Which line?

edit: Should point out here that we're using the Customer template for both customer & Admin. Looks better!

Posts: 4747
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

There isn't really a place to do it... I was just telling him what PHP code to inject into the module.

Posts: 11
Joined: 05/13/2008

Is there a way to get that onto the order form itself, using the customer template? Most orders, unless they're through trade or suppliers, are handled strictly through email, and this info on the email would help greatly. Or perhaps a different contribution, or way through Drupal to get that onto the emailed information.

Posts: 11
Joined: 05/13/2008

I figured out how to get the Order Comments onto the Customer template, so we're using that for the time being. But would still like to get info on the above contrib onto the template.

Cheers!