Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Beka Rice

    (@bekarice)

    @dogmatix72 interesting, haven’t seen something like this before — could you fill out our support form and include admin credentials so we can take a deeper look at this? I’m not able to replicate the issue on a test site. Thanks!

    Hola buenas, a mi me pasa lo mismo, sort by availabily no me lo hace que hay algun bug??

    I have a similar issue whereby I can create the custom sort filters I want (Name:A-Z and Availability) but can’t seem to combine them so they display alphabetically and at the same time ‘move’ out of stock to the last items in the list. Is this possible?

    https://bondsjewellery.co.uk/product-category/luxury-watches/

    I have the same trouble here https://spesagodina.it/web/prodcut-category/gusto-piu/pizze/ please help!

    Plugin Author Beka Rice

    (@bekarice)

    Hey @chriscolston and @matteo raggi, please open new threads in the future, as this helps us track issues accurately ??

    I have a similar issue whereby I can create the custom sort filters I want (Name:A-Z and Availability) but can’t seem to combine them so they display alphabetically and at the same time ‘move’ out of stock to the last items in the list. Is this possible?

    This is not possible without writing up your own custom queries for shop sorting (we’re limited in our plugin by what WooCommerce gives us in the filters we use), and is not very simple to do.

    If you sort by name A-Z, then name is used FIRST. Availability would only then be used as a tie breaker. Example: I have 2 products named “Woo Logo”. In your scenario, they’re displayed together, and the one in-stock would be shown before out of stock. The out of stock one isn’t moved to the end of any list, because the sorting is by name with an availability tie breaker.

    To exclude out of stock products initially, then add them after showing other product alphabetically, would require the help of a developer with good knowledge of WP_Query. You’d have to query products by name with no stock, then products with no stock by name, then merge these into your display list.

    Hey @dogmatix72,
    how did you manage to show the out of stock products at the end? I see you could did it without the name sorting.

    This is how it sorts by availability (but actually by name):
    https://elscampaners.cat/categoria-producte/fruites/?orderby=by_stock

    This is how I want it sorts (by category) but the out of the stock at the end:
    https://elscampaners.cat/categoria-producte/fruites/

    Any idea?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sorting by availability’ is closed to new replies.