• Hi,
    Sorting by price ascending and descending does not work. I suspect, it is because of the variable products. I have products, where some variable are not available. So certain ring sizes, for example. Here the price is at € 0.00, until this variable is available again. This is of course a very low price for sorting and is included in the sorting. I suspect. Is there a solution to this that the € 0.00 prices are not included in the sorting? Thanks for help. Regards

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

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

    (@kellymetal)

    Hi there,

    If the issue with your product sorting by price is truly being caused by your variations that are not available, then I would recommend either setting the variation so it is Disabled, or setting it as Out of Stock, rather than setting the price to “€ 0.00”:

    variation
    Link to image: https://d.pr/i/AmtVWB

    If the price is changed, that would affect the low end of the price range of the variable product. Also, customers would still be able to order it (for free). Changing the stock status or disabling it should avoid that, and not affect the price sorting.

    On the other hand, if the issue with sorting is not being caused by that, then it’s possible that it’s coming from your theme or another plugin on the site. To check for conflicts, please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce, then check to see if the issue is fixed. If it is, then you can switch your theme back and reactivate plugins one-by-one until you find the one that is causing the issue.

    You can read about testing for conflicts in our documentation here:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    I hope that helps!

    Thread Starter natsshop

    (@natsshop)

    Hi,
    Thank you very much for your detailed answer.

    But it is because of the € 0.00 products, that they are not set to “out of stock”.

    You cannot add the € 0.00 products to my shopping cart free of charge, this prevents a snippet.
    I have now set the variables to “out of stock” for a product, that was just beginning.
    Sorted in ascending order, with a price of € 34.35. After I have set the variables to “out of stock”, the product is sorted correctly again.
    It was already clear to me, that it was due to the setting of the variables.

    The prices of € 0.00 quickly changed back to regular Price and back to € 0.00 when the variable is no longer available.

    For example a piercing ring in 10 colors and several sizes. The bet on € 0.00 makes me a plug-in, when a size of a color is no longer available.
    So I don’t have to constantly change it manually from in stock to out of stock.

    Otherwise, I’m just changing this setting all day. When the size is available again, the plug-in sets the price again and it is available for purchase again.

    Very convenient. With the one disadvantage, that the sorting no longer fits.

    So I thought there was a solution. There’s a snippet for everything. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sorting by price doesn’t work’ is closed to new replies.