Personalized checkout and custom promotions with Shopify Scripts
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?
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024