Join our new community forum for support & discussion

Join Now

Home Support Extensions Marketplace Price on the last position (inserting listing)

Price on the last position (inserting listing)

  • Author
    Posts
  • yourwp.site

    Im using marketplace… When the user is inserting the listing, the “price tag” field appears at second place… How to send it to the last place?

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		if ( isset( $attributes['price'] ) ) {
    			$attributes['price']['_order'] = ['1000'];
    		}
    
    		return $attributes;
    	},
    	1000
    );
    yourwp.site

    For some reason it did not work! Can you please check?

    yevhen developer

    Please try this PHP snippet instead

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		
    		if ( isset( $attributes['price'] ) ) {
    			$attributes['price']['edit_field']['_order'] = 1000;
    		}
    
    		return $attributes;
    	},
    	1000
    );
    yourwp.site

    Yeees, it worked, thank you @yevhen !!

Viewing 5 posts - 1 through 5 (of 5 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.