2

How to change the price layered navigation URL Query string from

https://example.com/category.html?price=2%2C10_3%2C10

to

https://example.com/category.html?price=12-24

as I want to make Price slider. so any suggestions ?

  • i would suggest using urldecode('example.com/category.html?price=2%2C10_3%2C10'), witch translates to: example.com/category.html?price=2,10_3,10. But not really sure what you want to achieve.... – raduparvan Oct 12 '15 at 13:50
  • well I want to price=12-24 ie Price $12 to $ 24 and want to remove ?price=2%2C10_3%2C10 or ?price=2,10_3,10 for price attribute in layered navigation – Arun Karnawat Oct 12 '15 at 14:01
  • Have u come up with a solution so far? – Asadov Kamran Mar 1 at 17:46
  • I have used the same 2%2C10_3%2C10 it worked for me, I don't have access to the code, so I can share it, but it will work. I have used Js encodeURI() function to encode url, and now the latest version of Magento, V2 have removed the $ symbol. – Arun Karnawat Mar 7 at 6:06

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.