Join our new community forum for support & discussion

Join Now

Home Support Extensions Bookings Purchase/Order Note Required

Purchase/Order Note Required

  • Author
    Posts
  • Livelihood

    Is there an option or code to make the purchase/order note a required entry for vendors when posting a listing?

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		if ( isset( $attributes['purchase_note'] ) ) {
    			$attributes['purchase_note']['edit_field']['required'] = true;
    		}
     
    		return $attributes;
    	},
    	10000
    );
    Livelihood

    Thank you! It worked.

Viewing 3 posts - 1 through 3 (of 3 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.