Im using a Wordpress theme called listify, and the plugin im using is Woocommerce Booking and WP job manager.(Hotel booking site)
Now when i create a listing i'd have to choose a product for that listing and i don't want that, i want it to be more dynamic, so i created a custom field for price per night in the listing form like this:
add_filter( 'submit_job_form_fields', 'frontend_add_custom_field' );
function frontend_add_custom_field( $fields ) {
$fields['job']['price'] = array(
'label' => __( 'Price per night', 'job_manager' ),
'type' => 'text',
'required' => true,
'placeholder' => 'eg. $56 a night',
'priority' => 7,
); return $fields;}
I want to be able to display this in the Woocommerce booking widget and have it tally up by selecting multiple days..Any help on how this is done?
I've searched quite a bit already and don't want to use the products i want the price input on listing to be the price that's displayed on the widget and calculated.Thanks