• buzut

    (@buzut)


    Hi everyone,

    I know that regarding product ordering we have basically two options:
    * order based on attribute (price, product name, reviews…)
    * user defined order.

    As for the user defined order, is there a way to set different orders based on the current category?

    For instance, I have to product A & B which both are in categories Y & Z. What I would need is that product A comes before product B in category Y but after in category Z.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    > As for the user defined order, is there a way to set different orders based on the current category?

    From what I know you need to use custom code for this. This here seems to a good starting point: https://webhostingbuddy.com/blog/woocommerce-default-sort-method-for-specific-category/

    Kind regards,

    Thread Starter buzut

    (@buzut)

    Thank you for your answer, this aims specifically at default ordering options. It seems like if I really need to set a custom ordering by category, I’ll have to go down the route of creating an ordering attribute by category and then using a custom WC_Query.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom product order by category’ is closed to new replies.