Make tiers required in add listing form

Hello is there any manual way, or snippet code, to make at least one tier compulsory for vendors?


Please use this PHP snippet (How to add custom code snippets - HivePress Help Center):

	function( $attributes ) {
		if ( isset( $attributes['price_tiers'] ) ) {
			$attributes['price_tiers']['edit_field']['required'] = true;
		return $attributes;

P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

1 Like

Worked beautifully Thank you so much. I used to have it till 20 hours ago, dont know why the star dissapeard, ill update the key. Thank you.

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