Vinod
November 21, 2025, 5:25am
1
I am trying to import listings from a CSV file. The fields in my CSV File are as follows;
Title
Price
Booking Available To
Location
Description
Contact Number
WhatsApp Number
Sq Footage
Bedrooms
Bathrooms
Pets
Check In
Check Out
Available From
Till
Duration
Max Number
Import fails with this message;
Row #1
- "Booking Available To" field is required.
What is the default value for this variable? How do I make this optional?
kseniia
November 21, 2025, 5:40pm
5
Hi,
The “booking from” and “booking to” values represent the number of seconds in a day, from 0 (midnight) to 86,399 (one second before midnight).
For example, 1:00 AM = 3,600 seconds.
To make this field optional, please use this code snippet:
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
if(isset($form['fields']['booking_max_time'])){
$form['fields']['booking_max_time']['false'] = true;
}
return $form;
},
1000
);
P.S. Please note that we have to move this topic to the Import forum category. Since it’s related to a premium extension, the forum category is restricted — please add the license key to the account settings or consider renewing support if you still need assistance related to the premium themes or extensions Renew Support | HivePress
system
Closed
December 22, 2025, 4:34am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.