• Resolved redinthesky

    (@redinthesky)


    Hope someone can help me with this as I’m completely stuck on this.

    I am trying to display specific products in a chosen order. In this case, I’d like to display sku 123 as the first product, 345 as the second and so forth.It appears woocommerce defaults the sorting and doesn’t allow to specify exactly the order you’d like them in.

    I’ve tried adding orderby=’post__in’ as recommended elsewhere, but that didn’t work at all either. I’ve also tried the same but with IDs instead of SKUs.

    Example I’ve tried, still defaults:[products skus=’123,456,789,987,654,321′ orderby=’post__in’]

    Anyone have a tip or a code snippet that might alleviate this headache?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Stef

    (@serafinnyc)

    If you only want to do those two products @redinthesky you can simply add 1 and 2 to their Advanced tabs where it says Menu Order If you want to do this for a lot of products then I’m not sure the best approach. There may be a plugin out there, but I’m not aware of any.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I understand your concern with trying to display specific products in a custom order using SKUs. WooCommerce defaults to its own sorting, which can make it challenging to achieve the exact order you want.

    I suggest using the product IDs in your shortcode and sorting the products in ascending or descending order. This approach may help you achieve the desired display order more effectively.

    For more details you can use this article.
    https://woocommerce.com/document/woocommerce-shortcodes/products/

    Let me know if that works for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.