How do categories with subcategories display only the desired products?

This topic has 5 replies, 3 voices, and was last updated 1 months, 1 weeks ago ago by Luca Rossi

  • Avatar: Goostaf
    Goostaf
    Participant
    October 9, 2024 at 18:13

    Hello, we have categories and they have many subcategories, the products in such a category are displayed very chaotically, how can we choose which products to show here?

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 10, 2024 at 09:13

    Hello, Goostaf,

    Thank you for reaching out to us with your queries.

    Theme Options > WooCommerce > Product catalog > Default Product Sorting – these settings come from the WooCommerce plugin.
    By default, the sort order for products is “Custom Ordering + Name”. Navigate to Products, then click Sorting. From this page, you can simply drag and drop the product rows to reorder them https://gyazo.com/c680776c6d72e5bddf1457442afbca87
    If this method does not achieve the desired outcome, we would recommend you contact support of WooCommerce plugin – https://wordpress.org/support/plugin/woocommerce/ , because our theme doesn’t have additional settings for this.

    Thank you for your understanding.

    Best Regards,
    8Theme’s Team

    Avatar: Goostaf
    Goostaf
    Participant
    October 10, 2024 at 09:42

    I understand, but can’t we exclude those products that are not allocated to the parent category?

    Example dropped the link: from below, random products that are not highlighted as the parent, can you somehow remove these from the output in the parent?

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    October 10, 2024 at 09:45

    Or do we need to check the Parent Category checkbox in those products that we want to leave and raise in sorting, if it is impossible to hide those that are not in the parent category?

    Avatar: Justin
    Luca Rossi
    Support staff
    October 11, 2024 at 08:32

    Dear Goostaf,

    We hope this message finds you well.

    We would like to kindly direct your attention to the following solution, which may address your concern: [StackOverflow Solution](https://stackoverflow.com/a/65752466/2660153).

    Additionally, if the solution provided on StackOverflow does not resolve the issue, we recommend reviewing this alternative hook for further assistance.

    
    woocommerce_products_widget_query_args
    

    We hope this proves helpful.

    Best regards,
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.