Zipko
April 18, 2023, 4:42am
1
Hi HivePress team,
There is a couple of issues with price calculations:
When I set any number of nights (except 1 night) in 99% of the time the price doesn’t change and still shows price per 1 night.
However, if it does recalculate the number of nights correctly then it shows the total amount / night, but it is actually per stay.
Could you guys fix this bug, please? Because it would be very confusing for Guests.
Thank you.
andrii
April 18, 2023, 12:18pm
7
Hi,
Thanks for reporting this, the bug is confirmed, and we’ll fix it as soon as possible.
Zipko
May 5, 2023, 9:07pm
9
I see it has been fixed, thank you!
Would it be possible to add for example: “total per stay” behind the price once a date range is selected and price recalculated, instead of leaving it just blank?
Similar as when no date is selected when it shows “night”.
Thank you again for your ongoing support!
Zipko
May 31, 2023, 5:36pm
10
Hi Andrii,
I know you are busy, but do you think it will be possible to add?
Thank you.
yevhen
June 1, 2023, 4:46pm
17
Thank you for waiting. Please try this PHP code snippet
add_filter(
'hivepress/v1/models/listing/fields',
function( $fields, $model ) {
if(isset( $fields['price'] )){
if ( hivepress()->helper->is_rest() ) {
$fields['price']['display_template'] = 'Total per stay %value%';
}
}
return $fields;
},
1000,
2
);
1 Like