Vendors improvements requests

  • Author
    Posts
  • Nico

    Hi!
    Thanks for you plugin is very intuitive and usefull.
    I’m going to post a couple of features I think it is missing and hope to get you help.

    First I’d like to have the possibility to have the Vendors Pic and Name in the block’s of the listings.
    Is it something already possible in the current version? I’m not finding a way to achieve this.

    In the Vendor profile form, I’d like to choose the fields: for example users may not be private, but also companies and “Name” and “Last Name” could be misleading. Can you suggest a way to customize this part? Maybe hiding Name and Last Name somehow?

    Thanks a lot.

    ihordeveloper

    Thanks!

    1. This is already possible, but requires customizations. If you’re familiar with PHP you can check how vendor block is displayed on the listing page. HivePress defines templates as a block hierarchy (to match Gutenberg editor, I plan to make templates visually editable), so you can customize basically everything, and your customizations will be compatible with the future updates.

    2. I plan to separate user and vendor profiles sooner or later, I merged them to release vendor features earlier. This code snippet should hide the name fields:

    add_filter(
    	'hivepress/v1/forms/user_update',
    	function( $form ) {
    		unset( $form['fields']['first_name'] );
    		unset( $form['fields']['last_name'] );
    
    		return $form;
    	}
    );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.