• Resolved daxydus

    (@daxydus)


    Hello, I have two taxonomies in my catalog: Category and Brand.

    Now, the thing I need to do, is to order products by Category, inside a Brand page.

    Example: I have the brand Nike, and inside I have: sneakers, t-shirts, pants and so on.

    They are all showing mixed up (based on post ID), and I want to show T-shirts first, then pants, then sneakers.

    There’s a way to do that? Maybe through a custom function?

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @daxydus,

    If I understand correctly you have a main Product category (Nike) and subcategories (t-shirt, pants, sneakers and others). In order to sort the subcategories, you will simply drag and drop them within the main category in the Product categories page.


    Link to Gif: https://i.imgur.com/VlEPHIa.gif

    This is the result in the Nike product category page in the frontend:


    Link to image: https://i.imgur.com/rgyLgwD.png

    Let us know if you have any other questions.

    Thread Starter daxydus

    (@daxydus)

    Hello @rainfallnixfig

    thanks for your message,

    I have two different taxonomies “categories” and “brands”, so unfortunately they’re not directly related and can’t use your hint.

    I need that in frontend page of “Nike” brand, I show first products from the category “t-shirts” then “sneakers” and so on.

    Hope I explain that better now.

    Hey @daxydus,

    Thanks for the clarification. There’s not a built-in way to do that. It’s going to take some custom coding in order to group the products in one taxonomy together by a separate taxonomy.

    If you want to learn how to create a custom sorting option, you can take a look at this post.

    https://rudrastyh.com/woocommerce/sorting-options.html#add-custom-option

    If you need help creating this, I’d suggest hiring a freelance developer from Codeable. They should be able to write a quick plugin that can do this for you.

    https://woocommerce.com/codeable/

    Cheers

    Hi @daxydus

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order products by category, in brand page’ is closed to new replies.