1
Answers
Vote up!
0
Vote down!

Limit dates for delivery

I'm building a site for a florist. I want the ability for the customer to choose a delivery date but exclude certain days like weekends or holidays from the popup calendar. I'd also like the ability to exclude delivery by time. For example delivery for the current day will be grayed out (unavailable) if it's past noon. I don't currently see how to do either of these using rules. Any help would be greatly appreciated!

Asked by: deanster2u
on January 13, 2013

1 Answer

Vote up!
0
Vote down!

This isn't something to solve with Rules. The '#datepicker_options' property of the form element array for the 'date_popup' element is where you can do this (see Drupal's Date module for reference). You'll need to write some code, but this thread should help you get started.

Answer by: michfuer
Posted: May 14, 2013