Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a radio button for delivery time,


sunnygirl

Recommended Posts

Dear all,

 

I'm new to os commerce and trying to customize the order form...

 

I wish to add a radio button where customer get to choose whether to send the order to receiver in the morning or afternoon.

 

so i do like below...

 

 

<?php echo tep_draw_radio_field('delivery_time', 'm', $morning) . '  ' . MORNING . '  ' . tep_draw_radio_field('delivery_time', 'a', $afternoon) . '  ' . AFTERNOON . ' ' . (tep_not_null(ENTRY_DELIVERY_TIME_TEXT) ? '<span class="inputRequirement">' . ENTRY_DELIVERY_TIME_TEXT . '</span>': ''); ?>

 

 

The problem is.. I don't get to do validation whether the radio button is selected as I wish to make it a required field. I also having problem to keep the selection to session..

 

Can anyone please guide me?

 

Thanks!

Link to comment
Share on other sites

There was a contribution for florists that allowed people to pick a date. I think it also allowed a time. Maybe that will help you?

 

 

'FlyingKites,

 

thanks for your reply...

 

really? can you share me the link? sorry ya, I'm very new in osCommerce...

Link to comment
Share on other sites

'FlyingKites,

 

thanks for your reply...

 

really? can you share me the link? sorry ya, I'm very new in osCommerce...

 

 

FlyingKites,

 

I found the link...

 

Let me try to apply it now...

 

Thanks so much!!! :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...