• Resolved Mikey

    (@mikeyhash)


    Hi,

    Is there any way I can remove the Woocommerce sidebar (the filters) from the View Store page?

    Basically, when a vendor goes to view their own store just to see their published products, the sidebar is not necessary (they don’t need to filter through their own products), it only takes up space.

    Thus, I want each vendor to only see their products when the View their Store, without the filters.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jamie Madden

    (@digitalchild)

    Hi Mikey,

    This is dependent on your theme. You could conditionally display this based on user roles, however this is your theme not wcvendors.

    cheers

    Jamie.

    Thread Starter Mikey

    (@mikeyhash)

    Hi,

    Thank you for your answer.

    Well, WC Vendors basically creates the Vendor Store URL which simply is the actual general shop page (i.e. having the customized look given by the theme) but displaying only the respective vendor’s own products.

    Therefore, it makes sense to me to have nothing to do with the theme. The theme gives me a customized look for the Shop Page, in general. It couldn’t expect that I might want to show a different shop page to a user based on its “Vendor” role. Instead, I could easily expect that WC Vendors will allow me to show a different “View Own Store”.

    So, either my logic is somewhere wrong, or I didn’t quite understand your answer.

    By the way, I would be fine with having the widget filters sidebar on the View Store page, if it wasn’t for the WooCommerce’s standard Categories widget which shows all categories instead of only the ones belonging to the respective vendor. This makes the filter sidebar useless and that’s why I wanted to remove it completely.
    But maybe you could have a look into fixing it for the WC Categories widget.

    Jamie Madden

    (@digitalchild)

    Hello,

    WC vendors doesn’t add or remove sidebars, your theme does. We also don’t control how your shop pages look, beyond adding a header. We hook into the standard product-archive.php template. Your theme is what adds the shop sidebar and every single theme is different in this regard. Which is why I suggested hooking into your theme to display the sidebar based on the vendor role. As this is the only way I could see that working. We only hook into the existing themes at certain points. It would be close to impossible for us to manipulate a theme’s sidebar for the shop because not every theme uses multiple sidebars or even shop sidebars.

    We aren’t able to change sidebars or anything like that. What we can do is detect if this is a vendor store page and then conditionally show certain widgets. If you want to keep the sidebar but have widgets that work for the vendor stores, we have numerous widgets for the vendor store pages in WC Vendors Pro.

    https://docs.wcvendors.com/knowledge-base/wc-vendors-pro-widgets/

    cheers,

    Jamie.

    Thread Starter Mikey

    (@mikeyhash)

    That wouldn’t solve my issue here.

    I use the standard WC Categories widget for the shop page. It is simple and good as it is and a must for Customers when they go to Shop.

    Now, if I were to add the WC Vendors Pro Store Categories widget, since you hook into the standard product-archive template, then the Vendor will see in his store both the WC Categories widget and the WC Vendors Pro Store Categories widget, wouldn’t he?

    Jamie Madden

    (@digitalchild)

    Hello,

    Then your only option is to modify your theme to conditionally show the side bar for vendors on their page.

    cheers,

    Jamie.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘View Store – remove WC sidebar’ is closed to new replies.