• Resolved aplikacije

    (@aplikacije)


    Hello,

    I have a web shop (OceanWP theme) that has default sorting set to price ascending. When I enter the shop, prices are randomly set without any order. If I change the sorting on front-end, it works normally. If I set other default sorting (alphabetically, latest etc.) it works normally. I tried to fix it by setting the default order via PHP snippet, adding custom ordering and restoring product data lookup table through “WooCommerce -> Status -> Tools”. None of that worked. I even checked the lookup table manually through phpmyadmin and sorted it by min_price and by max_price and everything is fine.

    I’m pretty sure that for whatever reason, it just doesn’t work.

    If anyone ever had similar issue I’d be thankful to them.

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

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

    I understand what you are saying, I can see it works when the sort is selected, but it is not working by default.

    As a first step you can perform a conflict test, please follow these steps:

    • Clear the site cache
    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If the issue disappears you can then reactivate the plugins one by one until what is causing the issue is found You can find a more detailed explanation on how to do a conflict test here.

    Let us know what you find.

    Thread Starter aplikacije

    (@aplikacije)

    Hello,

    thank you for your advice. I did as you suggested and found out where the problem is.

    I am using Ele Custom Skin plugin to make custom product loops and I placed a wrong element in product archive template. I used element called “Posts” and it didn’t work, but switching the element to “Archive Posts” fixed my issue.

    Thank you again, I’m marking this as resolved.

    Hi @aplikacije

    I am using Ele Custom Skin plugin to make custom product loops and I placed a wrong element in product archive template. I used element called “Posts” and it didn’t work, but switching the element to “Archive Posts” fixed my issue.

    Glad to know you were able to detect the cause behind the issue.

    Feel free to create a new topic if you have any other questions.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce default sort by price not working’ is closed to new replies.