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.
Like in this URL

Can anyone help me how can I do this?

Thanks in advance.

  • you want to sort product on loading ? – Hiren Dec 11 '19 at 9:33
  • Sorting works on ajax , so you need to call that on load. – Padhiyar Gaurang Dec 11 '19 at 9:36
  • Yes Hiren i want it on loading – Anees Dec 11 '19 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 Dec 11 '19 at 11:33
  • user55548 when first page loads its not show correct sorting unless we change the order from dropdown. – Anees Dec 11 '19 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.