Why does the search bar fail with a % symbol?

Why does the search bar fail with a % symbol?

NikhilCBS
Visitor
1 0 0

Hi All,

We were able to note that our current search bar is not able to support search with % symbol in it. A lot of our product does have % value and as soon as we do the search and click on " view all " we get a 400 error. It would be really helpful if any of you could help us out here.

 

Website Link - https://www.chicbysisters.com/

 

Reply 1 (1)

kaalTechGeeks
Shopify Partner
318 58 80

Hi @NikhilCBS
I can help you with solve this problem & its because the '%' sign is not being recognized as a properly URL encoded string. 
So you need to first work on the Javascript, to convert the string/text that you write on the search box to be converted to a url encoded string. 
Once you have worked on the JS code your results would appear as shown in the below image: 

kaalTech_0-1668622219557.png

 


if you need more help do let me know. 
Thanks 

- If my answers saved you time and headaches, consider buying me a coffee!
- Check my profile: KaalTechGeeks | Reach out to me on my socials - Instagram | Skype | Mail
- Was my reply helpful? Click Like to let me know! & if your question was answered, Mark it as an Accepted Solution!