Home Forums WC Vendors Pro Support Anyone know whats wrong with this code Reply To: Anyone know whats wrong with this code

#59023
patrick
Participant

I think i got this to work. I changed the date input. I dont have a clue what im doing, but it seems to be working.

Original:

 ) )
	    );
	?>
		 
	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_date', array( 
			'post_id'		=> $post_id, 
			'id' 			=> '_auction_dates_from', 
			'label' 		=> __( 'From', 'wcvendors-pro-simple-auctions' ), 
			'class'			=> 'wcv-datetimepicker', 
			'placeholder'	=> __( 'From&hellip;', 'placeholder', 'wcvendors-pro-simple-auctions' ). 

' YYYY-MM-DD',  
			'wrapper_start' => '',
			'wrapper_end' 	=> '', 
			) )
		);
	?>
	
	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_end_date', array( 
			'post_id'			=> $post_id, 
			'id' 				=> '_auction_dates_to', 
			'label' 			=> __( 'To', 'wcvendors-pro-simple-auctions' ), 
			'class'				=> 'wcv-datetimepicker', 
			'placeholder'		=> __( 'To&hellip;', 'placeholder', 'wcvendors-pro-simple-

auctions' ). ' YYYY-MM-DD', 
			'wrapper_start' 	=> '',
			'wrapper_end' 		=> '', 
			'desc_tip'			=> true, 
			) )
		);
	?>

Slightly changed:
` ) )
);

WCVendors_Pro_Form_Helper::input( apply_filters( ‘wcv_simple_auctions_start_date’, array(
‘post_id’ => $post_id,
‘id’ => ‘_auction_dates_from’,
‘label’ => __( ‘From’, ‘wcvendors-pro-simple-auctions’ ),
‘class’ => ‘wcv-datepicker’,
‘placeholder’ => __( ‘From…’, ‘placeholder’, ‘wcvendors-pro-simple-auctions’ ).

‘ YYYY-MM-DD’,
‘wrapper_start’ => ”,
‘wrapper_end’ => ”,
‘custom_attributes’ => array(
‘maxlenth’ => ’10’,
‘pattern’ => ‘[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])’
),
) )
);

WCVendors_Pro_Form_Helper::input( apply_filters( ‘wcv_simple_auctions_end_date’, array(
‘post_id’ => $post_id,
‘id’ => ‘_auction_dates_to’,
‘label’ => __( ‘To’, ‘wcvendors-pro-simple-auctions’ ),
‘class’ => ‘wcv-datepicker’,
‘placeholder’ => __( ‘To…’, ‘placeholder’, ‘wcvendors-pro-simple-

auctions’ ). ‘ YYYY-MM-DD’,
‘wrapper_start’ => ”,
‘wrapper_end’ => ”,
‘desc_tip’ => true,
‘custom_attributes’ => array(
‘maxlenth’ => ’10’,
‘pattern’ => ‘[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3

[01])’
),
) )
);
?>

This website uses cookies to ensure you get the best experience on our website.