Shopify themes, liquid, logos, and UX
Hello Shopify community!
I'm trying to add SKU to predictive search.
All solutions I found are not compatible with my theme.
Does any one know how to do so and can share with me?
we have too many items to add the SKU to product title.
Thanks in advance!
screenshot for all search files
I was able to get predictive search to include SKU in the Dawn 14.0 theme by editing assets/predictive-search.js
Look for the fetch and replace with:
fetch(`${routes.predictive_search_url}?q=${encodeURIComponent(searchTerm)}&resources[type]=product&resources[options][unavailable_products]=hide&resources[options][fields]=title,variants.sku,product_type,variants.title§ion_id=predictive-search`,
{ signal: this.abortController.signal }
)
.then((response) => {
if (!response.ok) {
var error = new Error(response.status);
this.close();
throw error;
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025