We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Search Bar on Debut Theme Showing Pages Instead Only Products

Solved

Search Bar on Debut Theme Showing Pages Instead Only Products

gabrielSM
Tourist
4 0 2

Hi there!

I'm starting my website and I'm having a problem with Search Bar.
When I search something on it, it shows some of my own pages, example below:

gabrielSM_0-1644627881125.png

How can I configure to show only my products? Is there a way?

Thanks in advance.

Accepted Solution (1)
LitExtension
Shopify Partner
4963 1010 1192

This is an accepted solution.

Hi @gabrielSM,

My first tutorial was made for search drawer, with search page, go to templates > search.liquid file and add code:

Screenshot.png

Code:

<input type="hidden" name="type" value="product" />

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com

View solution in original post

Replies 6 (6)

LitExtension
Shopify Partner
4963 1010 1192

Hi @gabrielSM,

Please go to snippets > search-drawer.liquid file and add code here:

Screenshot.png

Code:

<input type="hidden" name="type" value="product" />

Refer https://shopify.dev/themes/navigation-search/search

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
gabrielSM
Tourist
4 0 2

Hello!

I tried but its still showing pages instead of 'No results found', example:

gabrielSM_0-1644696939308.png

 

gabrielSM_1-1644696985425.png


Any toughts?
Really appreciate!

Zworthkey
Shopify Partner
5581 641 1583

@gabrielSM 

Welcome to the Shopify community!
Thanks for your good question.


Please share your store URL.
So that I will check and let you know the exact solution here

gabrielSM
Tourist
4 0 2

Hey!

https://buscouu-comprouu.myshopify.com/ (pass 123)

Thanks in advance!

LitExtension
Shopify Partner
4963 1010 1192

This is an accepted solution.

Hi @gabrielSM,

My first tutorial was made for search drawer, with search page, go to templates > search.liquid file and add code:

Screenshot.png

Code:

<input type="hidden" name="type" value="product" />

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
gabrielSM
Tourist
4 0 2

Thank you so much, it worked! 😄