Narrow product search results

Buynblue
New Member
3 0 0

A433BF30-AE8A-482D-8B4A-96C928079FC3.jpeg

3B398CD2-A5DB-4D98-8AB2-A326ECA602C1.jpeg

C6E11EF3-594E-4702-B98A-CC9C56B554F1.jpeg

Hello Everyone

Can you help me to narrow the product search results in my store?

Once I search for s product, there are too many products in the search results because the search function considers the description text of my products. Can you help me to change the code, that only the SKU, Product title, Tags and the Collection of the product is being considered while searching for a product? I want to achieve that the product description is excluded from being searched.

As I not experienced in editing the theme code, I would really appreciate an easy how to do it explanation. 

 

In the attachment you can see my search.liquid files.

 

Thank you a lot for your support.

Best regards

Robin

0 Likes
David_Weru
Trailblazer
154 14 34

Hello @Buynblue 

This article explains how search works and even how to modify code for the search results.

https://www.shopify.com/partners/blog/custom-search

 I could offer to fix it if you'd like, but it's good in the long run to learn this.  It's very helpful when doing promotions and subtly showing promotions in the results.

Buynblue
New Member
3 0 0

C6C4C7F9-1019-4E7C-8673-A7150B79BA9F.png

Hello

Thanks a lot for sharing.

Unfortunately I this article I only found out how to limit the search results to either pages, articles or products. As I have a dropdown menu, to choose the section, I don‘t need this to change.

 

My problem is that I would like to limit my search results in the product section. So for example I want to buy a charger. Accordingly I search for the keyword ,,charger,,

Then my search results also show products which are not much related to a charger but they appear because I used the word ,,charger,, in the description of a different product. So now there are many products shown. Actual charger but also items which are not chargers but contain the word in the description.

Can you help me to only show items which contain the keyword I searched in either the product title, SKU, or the product tag?

 

Thanks a lot for the support.

 

If it is really complicated to edit the code, I would really appreciate it if you could name me the price for which you would fix it for me.

 

 

0 Likes
David_Weru
Trailblazer
154 14 34

Hello @Buynblue 

I'll try and work on the limiter for you.  

Message me your store link and we'll go from there.  For this one I won't charge.

0 Likes
Buynblue
New Member
3 0 0

Hey

Wow you are amazing.

Really appreciate your help!

My store link is: https://buynblue.com / https://buy-n-blue.myshopify.com

 

Thank you so much David_Weru

0 Likes