When I go on the category page, sorting does not work unless I select any value from dropdowns like position or price then it sorts the product.

Can anyone help me how can I do this?

Thanks in advance.

  • you want to sort product on loading ?
    – Hiren
    Commented Dec 11, 2019 at 9:33
  • Sorting works on ajax , so you need to call that on load. Commented Dec 11, 2019 at 9:36
  • Yes Hiren i want it on loading
    – Anees
    Commented Dec 11, 2019 at 10:52
  • I have checked, when open page position is set on dropdonw and check first 3 prodcuts. When i change sorting price and select again position, same product display. So it looks default sorting position is working
    – user55548
    Commented Dec 11, 2019 at 11:33
  • user55548 when first page loads its not show correct sorting unless we change the order from dropdown.
    – Anees
    Commented Dec 11, 2019 at 12:46


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.