Booking price calculation issues

Hi HivePress team,

There is a couple of issues with price calculations:

  1. 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.

Screenshot 2023-04-17 154247

  1. However, if it does recalculate the number of nights correctly then it shows the total amount / night, but it is actually per stay.

Screenshot 2023-04-17 154039

Could you guys fix this bug, please? Because it would be very confusing for Guests.

Thank you.

Hi,

Thanks for reporting this, the bug is confirmed, and we’ll fix it as soon as possible.

Thank you Andrii!

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?

Screenshot 2023-05-05 134210

Similar as when no date is selected when it shows “night”.

Screenshot 2023-05-05 134043

Thank you again for your ongoing support!

Hi Andrii,

I know you are busy, but do you think it will be possible to add?

Thank you.

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

Thank you Yevhen!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.