Price on the announcement

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

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?

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

Hi,

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

For Marketplace extension:

For Bookings extension:

​I hope this is helpful to you.

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

I found the solution !

add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if ( isset( $attributes['price'] ) ) {
			$attributes['price']['edit_field']['label'] = 'PRICE FOR WEEK';
		}
 
		return $attributes;
	},
	1000
); 
1 Like

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