Datepicker in Custom Field
-
Hi all,
i added a custom field to Submit_Form.php and Woocommerce.php and also saved the field in Submit_Form.php. My custom field is date field, so I copied the code from start / end date.
Example:
// Veranstaltungsdatum woocommerce_wp_text_input( array( 'id' => 'wpneo_prject_update_eventdate_field[]', 'label' => __( 'Veranstaltungsdatum', 'wp-crowdfunding' ), 'desc_tip' => 'true', 'type' => 'text', 'class' => 'datepicker', 'placeholder' => __( date('d-m-Y'), 'wp-crowdfunding' ), 'value' => stripslashes($value['date']) ) );
It all works fine. The Field save in backend and frontend. But I can not get the date picker to work. I tried the class=”hasDatepicker” and I also tried to implement the datepicker.js manually by id. Nothing seems to work. Neither in backend nor frontend.
Any ideas how I get the datepicker to work?
Thanks in advance
Theo
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Datepicker in Custom Field’ is closed to new replies.