# Price on the announcement

**URL:** <https://community.hivepress.io/t/price-on-the-announcement/4692>\
**Category:** Bookings\
**Tags:** marketplace, bookings\
**Created:** [March 3, 2023, 7:53pm UTC](https://community.hivepress.io/t/price-on-the-announcement/4692 "2023-03-03T19:53:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Logannlx](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/8797f3/32.png) [@Logannlx](https://community.hivepress.io/u/Logannlx)\
**Post date:** [March 3, 2023, 7:53pm UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/1 "2023-03-03T19:53:54Z")

</div>

How to add on the announcement form “price per day”

 ![Capture d’écran 2023-03-03 à 20.53.18](https://community.hivepress.io/uploads/default/original/2X/0/02941d43d88104989af3c7109d464efd84b00eef.png)

---

<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:** [March 4, 2023, 5:58pm UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/2 "2023-03-04T17:58:59Z")

</div>

Please share more details about the issue, do you mean changing the field label, or the price display format? So you have Marketplace and/or Bookings installed?

---

<div class="post-metadata">

**Author:** ![Logannlx](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/8797f3/32.png) [@Logannlx](https://community.hivepress.io/u/Logannlx)\
**Post date:** [March 13, 2023, 9:26pm UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/3 "2023-03-13T21:26:01Z")

</div>

During the ad deposit, just after “title” there is written “price” (managed by woocommerce), I would like to add as precision “price per week” but I can’t do it

---

<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:** [March 14, 2023, 7:49am UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/4 "2023-03-14T07:49:44Z")

</div>

Hi,

If I understand you correctly, please check these PHP snippets:

For Marketplace extension:

> <https://gist.github.com/hivepress/9a3ac9a571d00521359e17c7471200a7>

For Bookings extension:

> <https://gist.github.com/hivepress/da2e25219ed47ede2a92f1090303c44d>

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![Logannlx](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/8797f3/32.png) [@Logannlx](https://community.hivepress.io/u/Logannlx)\
**Post date:** [March 14, 2023, 5:39pm UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/5 "2023-03-14T17:39:45Z")

</div>

Hello, I’m really sorry but it doesn’t work, because the “price” is not part of the attributes in hivrepress marketplace, but of woocommerce.

I deleted the price attribute from hivepress but woocommer displays “price” and I don’t know how to modify

---

<div class="post-metadata">

**Author:** ![Logannlx](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/8797f3/32.png) [@Logannlx](https://community.hivepress.io/u/Logannlx)\
**Post date:** [March 15, 2023, 12:14am UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/7 "2023-03-15T00:14:24Z")

</div>

I found the solution !

```auto
add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if ( isset( $attributes['price'] ) ) {
			$attributes['price']['edit_field']['label'] = 'PRICE FOR WEEK';
		}
 
		return $attributes;
	},
	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:** [April 14, 2023, 12:15am UTC](https://community.hivepress.io/t/price-on-the-announcement/4692/8 "2023-04-14T00:15:11Z")

</div>

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