Support » Plugin: WP Crowdfunding » Datepicker in Custom Field

  • fabiantheobald

    (@fabiantheobald)


    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)
  • Plugin Support Md Billal Hossain

    (@probillals)

    Hi @fabiantheobald

    This has to do some custom code to work these things properly. It needs to have a deeper look at this point. It would be better if you send us a mail regarding this issue to support at themeum dot com

Viewing 1 replies (of 1 total)
  • The topic ‘Datepicker in Custom Field’ is closed to new replies.