End Date on a checkout form

I am working on a woocommerce fundraiser webstore and during checkout I am asking for the “End Date” of their fundraiser, and if the date they enter is before the current date (ex. they enter 01/14/14 as the end date but the current date is 01/15/14) then I need an error message to pop up. Here is the code I have for the End Date field in the checkout form. Thanks so much for your help!

$fields[‘billing’][‘billing_enddate’] = array(
‘label’ => __(‘Fundraiser End Date’, ‘woocommerce’),
‘placeholder’ => _x(‘example: 01/01/2000’, ‘placeholder’, ‘woocommerce’),
‘required’ => true,
‘class’ => array(‘form-row-wide’),
‘clear’ => true
);

What did you try?

Sponsor our Newsletter | Privacy Policy | Terms of Service