• Resolved jimmymussie

    (@jimmymussie)


    Hello,

    We have a webshop with 1000+ products and 100+ categories. We sorted them all out and are now putten the products in the categories, but then I saw a issue on the shop page…

    When i click for example on: Aquariums (main category) I see first the subcategory boxes and then all the products in these categories. That is good, BUT… the product sort is not correct. I want the first (main) category products to be displayed first, and then the subcategories products… But this is not the case right now.

    I need some settings, plugin or a piece of code that causes the main category products to be displayed first, and then the underlying categories.

    I hope you guys can help me!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @jimmymussie ,

    Okay, let’s first understand the expected result.

    When you are on the main category page you want to see both products and sub-categories. But you also want to organize the main category products in a way that they show just after the sub-categories and they are the first on the list. Is my assumption correct?

    If yes, this is what I will do –

    Under wp-admin > Appearance > Customize > WooCommerce > Product catalog I will select category display as Show subcategories & products.

    Then to organize the products I will go to my wp-admin > Products > All Products page and filter for the products under the main category that I want to organize. Then I will sort them according to my need from the “Sort” tab – https://prnt.sc/wjtbxk.

    You can drag and drop the products from the main category to be on top of the sub-categories.

    Thank you 🙂

    Thread Starter jimmymussie

    (@jimmymussie)

    Yes your assumption is correct! I will try this! Thankyou!

    Thread Starter jimmymussie

    (@jimmymussie)

    This will work! Tankyou! But the problem is: The webshop has 1000+ products and 100+ categories and every week there will be more, Is there any code or tool to do this by defeault?

    For example:
    Set product order to category order

    Thankyou!

    Hello @jimmymussie ,

    I am afraid, I do not have a direct solution to change the order of the product category page’s products based on the parent/child category automatically. It will require you to create custom product queries and logically print products based on your parent-child structure.

    This can be a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    If you need a paid solution, you can consider taking help from one of our partner’s website.

    This can be an out of the topic suggestion, but you can take a look at this extension that allows you to show nested products in the product pages – https://woocommerce.com/products/woocommerce-nested-category-layout/

    Thank you 🙂

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Woocommerce category product sorting’ is closed to new replies.