How can i show security deposit on the listing page

I would like to show the security deposit on the listing page. So that a client can see the security deposit before paying.

If it is possible to add an explanation under the security deposit field?


Under security deposit

1 Like

Please try this PHP snippet but please note that it can require further customization

add_filter( 
	'hivepress/v1/models/listing/attributes', 
	function($attributes){
		if(isset($attributes['booking_deposit'])){
			$attributes['booking_deposit']['display_areas']  = [ 'view_page_primary' ];
			$attributes['booking_deposit']['edit_field']['description']  = 'Your custom text';
		}
		return $attributes;
	}, 
	1000 
);
1 Like

Thank you. it’s working now

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

Hi,

I would need to display the security deposit in the categories pages where all the listings are displayed so that customers can directly get access to the price / day and deposit. In this way they won’t need to click on the listing to know how much is the security deposit.

Thank you for your help !

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation. Please check the sample solution in this topic.