# Add "Estimated price" text in the calculated price field

**URL:** <https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261>\
**Category:** Bookings\
**Tags:** marketplace, bookings\
**Created:** [December 7, 2022, 4:56am UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261 "2022-12-07T04:56:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sapkotatechnologies](https://community.hivepress.io/user_avatar/community.hivepress.io/sapkotatechnologies/32/2571_2.png) [@sapkotatechnologies](https://community.hivepress.io/u/sapkotatechnologies)\
**Post date:** [December 7, 2022, 4:56am UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/1 "2022-12-07T04:56:21Z")

</div>

Hello, I wanted to add the text “Estimated Price” near the calculated price section.

 ![Capture.PNG](https://community.hivepress.io/uploads/default/original/2X/4/4c463acf28085975ce285951aab9081a51b92e27.jpeg)  
 ![Capture.PNG](https://community.hivepress.io/uploads/default/original/2X/4/4c463acf28085975ce285951aab9081a51b92e27.jpeg)

Someone from hivepress told me its not possible through locotranslate. So I need a code snippet for that. Can anyone help me?

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [December 7, 2022, 10:30pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/4 "2022-12-07T22:30:56Z")

</div>

Please try this PHP snippet

```auto
add_filter(
	'hivepress/v1/models/listing/fields',
	function($fields){
		
		if(isset($fields['price'])){
			$fields['price']['display_template'] = 'Estimated price: %value%';		
		}
	
		return $fields;
	},
	1000
);

```

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [January 6, 2023, 10:31pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/5 "2023-01-06T22:31:34Z")

</div>

Closed on January 6, 2023, 10:31pm UTC

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

---

<div class="post-metadata">

**Author:** ![bill1](https://community.hivepress.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://community.hivepress.io/u/bill1)\
**Post date:** [January 23, 2025, 4:15pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/6 "2025-01-23T16:15:29Z")

</div>

Hi,  
The rental price is calculated automatically after selecting the dates. However, the price that appears also includes the commission fee. It’s quite possible that customers don’t understand the price, as there’s no explanation of the fact that the price includes the commission fee.

My question is this: is it possible to add a note in the price field to specify that the price also includes commission charges?

Thank you!

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 24, 2025, 10:23am UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/7 "2025-01-24T10:23:52Z")

</div>

Hi,

Please check the solution in this topic.

I hope it helps.

---

<div class="post-metadata">

**Author:** ![bill1](https://community.hivepress.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://community.hivepress.io/u/bill1)\
**Post date:** [January 25, 2025, 12:44pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/8 "2025-01-25T12:44:23Z")

</div>

Hi,  
The snipped code is not only for the zone where the price is located after selecting the dates, but also for the prices displayed on the listings.  
I would like to leave the listing format untouched. I just want users to understand why the price isn’t what they expect (with the site’s extra commission).

My request is as follows: Can we just change the price text box after selecting the dates?

Example:

Before: €0.90  
After date: Price: €0.90

Only after selecting the dates. Nothing else changes.

Many thanks for your feedback

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 27, 2025, 8:26am UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/9 "2025-01-27T08:26:34Z")

</div>

Opened on January 27, 2025, 8:26am UTC



---

<div class="post-metadata">

**Author:** ![bill1](https://community.hivepress.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://community.hivepress.io/u/bill1)\
**Post date:** [January 27, 2025, 4:23pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/11 "2025-01-27T16:23:40Z")

</div>

Hi,  
Can you please give me an answer ?

Thank you very much

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [January 28, 2025, 12:13am UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/12 "2025-01-28T00:13:24Z")

</div>

Please try this code snippet instead:

```auto
add_filter(
	'hivepress/v1/models/listing/fields',
	function($fields){
		
		if(hivepress()->helper->is_rest() && isset($fields['price'])){
			$fields['price']['display_template'] = '%value% (incl. fees)';		
		}
	
		return $fields;
	},
	1000
);

```

It should affect the price format only when the price is re-calculated on changes in the booking form (e.g. dates).

---

<div class="post-metadata">

**Author:** ![bill1](https://community.hivepress.io/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@bill1](https://community.hivepress.io/u/bill1)\
**Post date:** [January 28, 2025, 12:16pm UTC](https://community.hivepress.io/t/add-estimated-price-text-in-the-calculated-price-field/3261/13 "2025-01-28T12:16:29Z")

</div>

Hi,  
It works, thank you very much!
