Prices Missing in Shopify Search? Quick Fixes from the Community!
Why Aren't My Prices Showing Up in Shopify Search?
Ever noticed how frustrating it is when customers use your Shopify store's search bar, only to find the products they want *without* the prices displayed? It's a surprisingly common issue, and recently, a store owner named suly1 ran into this problem. They posted in the Shopify community, and the solutions that came up were super helpful, so I wanted to share them with you.
The Mystery of the Missing Prices
Suly1's original question was pretty straightforward: "price of items don’t appear on search bar, shopify support couldn’t help as it may be a code issue! need help please thanks"
Right away, Shadab_dev jumped in, suggesting it might be a bug in the Liquid code. Liquid, for those who aren't super familiar, is the templating language Shopify uses to dynamically load content. Shadab_dev offered to take a look, mentioning the need for store access to dig into the code.
Community to the Rescue: Diving into the Code
Mustafa_Ali offered a different angle, suggesting the problem wasn't in the CSS (styling) but in the theme.liquid file. He even included a screenshot pointing to a specific area. It's awesome when community members provide visual aids like that!

Shadab_dev then built on this, pinpointing the issue to a file related to predictive search. The key was to find something like predictive-search-item__price in the code and replace a hardcoded "0" value with {{ product.price }}. This tells Shopify to actually pull the product's price from the database.
How to Fix It: A Step-by-Step Guide
Okay, so let's break down how you can implement this fix if you're facing the same issue. This is based on the community's suggestions, so kudos to them!
- Access Your Shopify Theme Code: From your Shopify admin, go to Online Store > Themes. Then, click "Actions" > "Edit code" on the theme you want to modify.
- Find the Predictive Search File: Use the search function (Ctrl+F or Cmd+F) within the code editor to look for files with names like "predictive-search" or similar. The exact name might vary depending on your theme.
- Locate the Price Code: Once you've found the right file, search for
predictive-search-item__price. - Replace the Hardcoded Value: Look for where the price is being displayed. If you see a "0" or any other static value instead of the actual product price, replace it with the Liquid code
{{ product.price }}. This tells Shopify to dynamically insert the product's price. - Save Your Changes: Click "Save" in the top-right corner of the code editor.
- Test Your Search: Go to your store and use the search bar to see if the prices are now displaying correctly.
Suly1 mentioned checking both theme.js and theme.css, so if you can't find the relevant code in the predictive search file, it's worth a quick search in those files too. However, based on the discussion, the predictive search file is the most likely culprit.
A Word of Caution: Collaboration Access
Shadab_dev offered direct assistance, which is super generous. If you *do* decide to grant someone access to your store (using the Collab access code from settings > users and permissions), make absolutely sure they're trustworthy and you understand the level of access you're giving them. It's always a good idea to back up your theme before anyone starts making changes, just in case!
Ultimately, fixing missing prices in your Shopify search bar often boils down to tweaking the Liquid code in your theme. By following the steps outlined above, and with a little help from the Shopify community, you should be able to get those prices displaying correctly and improve the shopping experience for your customers. Remember to always test thoroughly after making code changes!