• Resolved bimbaim

    (@bimbaim)


    How I sort product by product type?
    The sequence is grouped, variable, simple
    I want to show based on the sequence

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I understand you would like to show the products in this sequence: grouped products, variable products, then simple products.

    To clarify, do you want to sort by product type on the back end or shop page?

    Thanks.

    Thread Starter bimbaim

    (@bimbaim)

    Hello,

    This is sorting for the front page/shop page,

    First, I think something like using order by hooks but I can’t find how to use it with the product type! it only works for me if the product type is meta, not taxonomy.

    so I hope there is a way to sort by product type, especially by this sequence: grouped products, variable products, then simple products.

    Thanks

    • This reply was modified 2 years, 4 months ago by bimbaim.

    Hi @bimbaim

    Thanks for clarifying.

    I searched around but couldn’t find any documents/articles that discuss this kind of sorting.

    As there’s not an inbuilt way to achieve this, you’ll want to consider custom coding. However, kindly be informed that support for custom coding is beyond the scope of support we are able to provide in this forum. This particular forum is for questions that are related to the WooCommerce core features.

    For help with custom code I recommend the WooCommerce Developer Resources Portal.

    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.

    Lastly, for direct assistance with code customizations, I recommend consulting with the WooCommerce Customizations Partners. https://woocommerce.com/customizations/`

    Nevertheless, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out here.

    Cheers

    Seems we’ve not had additional inputs on this thread. Thus, we encourage you to make use of the above resources.

    I’ll go ahead and mark the thread as resolved but please feel free to create a new thread if you have further questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sort Product By Product Type’ is closed to new replies.