Setting the Sales Price

We would like to allow sellers to sell items on hivepress for between 1 yen and 100,000 yen.

In short, we want to prevent sellers from selling for free. Is it possible to set that up?

Please try this PHP snippet

add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if ( isset( $attributes['price'] ) ) {
			$attributes['price']['edit_field']['min_value'] = 1;
			$attributes['price']['edit_field']['max_value'] = 100000;
		}

		return $attributes;
	},
	1000
);

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