Personalized checkout and custom promotions with Shopify Scripts
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
Hello guys!
I am the developer of the https://sinobiofficial.com/ and i am trying to add the 'predictive search'.I did it successfully for type=product, but for the type=page it doesnt work.
DOCS: https://shopify.dev/themes/navigation-search/search/predictive-search#react-tabs-5
I will provide you a part of my fetch request:
fetch(`/search/suggest?q=${searchTerm}&resources[type]=product,page&resources[options][fields]=author,body,title,variants.title&resources[options][prefix]=last&resources[limit]=10§ion_id=section-predictive-search`)
Our website have some pages:
https://sinobiofficial.com/pages/about
https://sinobiofficial.com/pages/page-sustainability
https://sinobiofficial.com/pages/orthopaedics
etc...
Their titles in the admin panel:
About
Sustainability
Orthopaedics
I added query parameters resources[options][fields]=author,body,title,variants.title and this should work, but no
You can try to test our search and predictive search
Also, when i go to - https://sinobiofficial.com/search - products/pages search works, BUT for the predictive search works only the type=product
Can you help me?
My bad. Can the moderators move this topic to the correct location?