Home Forums WoodMart support forum Exclude category in Shop page

Exclude category in Shop page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #395949

    tibetnepalarts
    Participant

    How to exclude one category from a shop page?

    #396004

    Hello,

    You did not specify the place where you want to remove it. Please check this manual, to find the detailed instructions: https://xtemos.com/docs-topic/product-category-menu/

    If you have any questions please feel free to contact us.

    Best Regards

    #396151

    tibetnepalarts
    Participant

    On the shop page, all the products are shown. I want to exclude the products of one category.

    Please check the attachment.

    On the shop page as in the picture, I want to exclude all the products of one category.

    Attachments:
    You must be logged in to view attached files.
    #396232

    Hello,

    You can configure the view of the shop and product category page in Appearance > Customize > Woocommerce > Product page.

    You will find the option there.

    If you have any questions please feel free to contact us.

    Best Regards

    #396264

    tibetnepalarts
    Participant

    There is no any options to exclude one category. I need to exclude products of only one category in shop page.

    #396457

    Hello,

    Please check this screen: https://gyazo.com/f41d1de5e46aa09ff943695f078f4a77

    You can set showing products only, categories only or mixed.

    If you have any questions please feel free to contact us.

    Best Regards

    #396584

    tibetnepalarts
    Participant

    This is not what I am trying to fix. The shop page is showing products of all categories. I want to exclude products from one category. Please read the problem carefully.

    #396689

    Hello,

    Unfortunately, Woocommerce does not provide the option to show categories and products for one category and hide for another.

    It is not possible to implement with custom CSS either.

    Best Regards

    #396908

    tibetnepalarts
    Participant

    I use this code in the function.php file. But It is not working for me.

    add_filter( ‘get_terms’, ‘ts_get_subcategory_terms’, 10, 3 );
    function ts_get_subcategory_terms( $terms, $taxonomies, $args ) {
    $new_terms = array();
    if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin() &&is_shop() ) {
    foreach( $terms as $key => $term ) {
    if ( !in_array( $term->slug, array(“thanka-paintings”) ) ) {
    $new_terms[] = $term;
    }}
    $terms = $new_terms;
    }
    return $terms;
    }

    #397058

    Hello,

    Unfortunately, it is not possible. Our support does not cover fixing or customization of the plugins.

    Sometimes, if the issue does not require time-consuming or complicated customization, our developer provides a quick solution, in this case, it would not work.

    If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

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