Viewing 4 replies - 1 through 4 (of 4 total)
  • The linked article is about sorting the product list, not about sorting the order list.

    I can’t grasp how sorting the order list would be possible, since an order could contain more than one SKU. Which SKU would the sort use? If your orders each contain only one item, presumably you have some code to enforce that. Vanilla WooCommerce allows the purchase of multiple products per order. If you have a plugin or something that enforces one product per order, a code snippet could be used to sort the order list. Not much of a job but its unlikey someone would provide the code on the forum, so php skills or a developer would be needed.

    Thread Starter gossie

    (@gossie)

    Hi Lorro, thx for the answer.
    In the SKU field I would like to enter a specific number for a bailiff so that I can check which item is sold by which bailiff.

    As a bailiff can have more than 1 article to sell, it would be really handy to just get an overview which orders have already been paid for etc.

    If not possible with the orders in WooCommerce, can I do so with the products themselves?

    The admin list of products includes a SKU column. Enable it in screen options if you don’t see it. Click the column header to sort.

    If you’re asking if its possible to sort the products within an order by SKU, then yes. There is a filter for that. ‘woocommerce_order_get_items’ This passes the unsorted order items to your custom function where they can be sorted before being returned. PHP skills or a developer would be needed.

    Plugin Support B C. a11n

    (@battouly)

    We haven’t heard back from you in a while, so I’m going to mark this as “resolved”. If you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce back-end orders sort by SKU’ is closed to new replies.