List of Vendor and Statistics

  • Author
    Posts
  • Pejiko

    Hello Ihor,
    1- Is it possible to order the list of vendor by the number of their listing ? I want to create a page where I can put the list of all vendor. I know I can use the vendor block but the problem is the number of vendor is limited and I can t order by the number of their listing. How can I show all the vendor, order by the number of their listing and with pagination in a page please? Is it also possible to put only the list of vendor where number of listing is more than 3 ?
    2- I want to buy the statistics plugins, so I want to know if this plugin show all statistic of the listing for one vendor? For example, I have a vendor John and he has a 10 listing. Is there a way to view all the statistic ? A link for a demo may help me.
    Thanks in advance

    Pejiko

    I found a solution to view all vendor in a page with pagination ! I have to create a vendors Page 🙂 . But the problem is that there is a filter button in that page and I don’t need it. Only in the vendors Page. I want a filter in my listing page. How can I proceed to remove this filter button and make the vendors Page to fullwidth ? Is it possible to order the list of vendor by the number of their listing ?

    ihordeveloper

    1. There’s no such feature yet, it’s possible to sort vendors by date, name, and custom attributes.

    2. It shows statistics per listing (not the summary for all listings), you can check the overview here https://www.youtube.com/watch?v=ktuQ3pm3M60&ab_channel=HivePress

    ihordeveloper

    Removing the vendor sidebar is possible, but requires code customizations. Please consider adding some useful widgets there (e.g. some ads or a list of categories).

    Pejiko

    Thank you Ihor,
    I try this to remove the vendor sidebar :

    add_action( 'wp_head', function () { ?>
    <style>
    .hp-page__content {flex-basis:100%; max-width:100%}
    .hp-page__sidebar {display:none}
    </style>
    <?php } );

    But it’s apply to all the website :/
    I use this to edit the number of column 🙂 :

    add_filter(
    	'hivepress/v1/templates/vendors_view_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'vendors' => [
    						'columns' => 3,
    					],
    				],
    			]
    		);
    	}
    );

    How can I only remove the vendor sidebar, what kind of code customizations I need to do?

    Pejiko

    I try this one :

    add_action( 'wp_head', function () { ?>
    <style>
    .hp-form--vendor-filter .hp-form__button { display:none; }
    </style>
    <?php } );

    It hide the filter button on the vendor page but a blank column still appear.
    The code below work but it hide also the sidebar in the listing–view-page :

    add_action( 'wp_head', function () { ?>
    <style>
    .hp-page__content {flex-basis:100%; max-width:100%}
    .hp-page__sidebar {display:none}
    </style>
    <?php } );

    So, is there a way to hide all sidebar except in the listing–view-page please? It can solve my problem

    ihordeveloper

    You can try using this CSS snippet, add it to the Additional CSS field in Appearance/Customize:

    .hp-template--vendors-view-page .hp-page__sidebar {display:none}
    .hp-template--vendors-view-page .hp-page__content {flex-basis:100%; max-width:100%}
    Pejiko

    Thank you very much Ihor

    Pejiko

    I have one last question : if I want to apply the same CSS snippet to the search result page or sort page how can I proceed. I don’t know what is the name of the page. I try to change the vendors to search or sort but it doesn’t work, like this :

    .hp-template--sort-view-page .hp-page__sidebar {display:none}
    .hp-template--sort-view-page .hp-page__content {flex-basis:100%; max-width:100%}

    and

    .hp-template--search-view-page .hp-page__sidebar {display:none}
    .hp-template--search.-view-page .hp-page__content {flex-basis:100%; max-width:100%}
    ihordeveloper

    Any page that lists vendors has “hp-template–vendors-view-page” class. If you’re familiar with CSS you can always check the current template class via web inspector (it’s set on the body tag).

    Pejiko

    Thank you, I’ll ckeck it

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