Adding DatePicker to checkout
-
Goal: Add a mandatory datepicker to eshop checkout.
Site: indianhomecooks.comHere’s the datepicker-specific code I have:
// Add an additional field to the checkout within a new fieldset add_filter('eshopaddtocheckout','eshop_extras_checkout'); function eshop_extras_checkout($echo){ $echo .= '<fieldset class="eshop eshop_extra">' . "\n"; $echo .= '<legend>Delivery:</legend>' . "\n"; $echo .= '<label for="eshop_extra">'.__('Date To Be Delivered','eshop').' <span class="reqd">*</span><br /> <input class="short" type="text" name="eshop_extra" value="" id="datepicker" maxlength="20" size="20" /></label><br />'; $echo .= '</fieldset>' . "\n"; return $echo; }However, the end result is that it just displays the input label with an input field…that’s it, no calender.
I have to admit that I’m not exactly clear as to how to use the jQuery UI Widgets plugin and suspect I’ve missed a step. Could I trouble you to walk me thru the process?
Thanks so much for your help 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Adding DatePicker to checkout’ is closed to new replies.