All things Shopify and commerce
While allowing rich snippets is good for SEO, we have member-only products and don’t want to disclose information about price and stock to non-members. Therefore, we hide those details from the product page with customer accounts and customer tag. However Google search reveals rich snippets including the member only price and stock levels.
Can someone suggest how we can remove all shopify product pricing and stock levels from Google crawling?
Thanks 🙌
That really depends how structured meta data for products are implemented on your website. Are you using an app, or is that feature embedded inside the theme you are using?
The feature where price is hidden from public and only available to logged in customers is done with code customization {% if customer %}
We are using both Shopify price tiers (compare price shown to public, price only to customers with login and "trade" tag). As prices are available in Shopify, google can crawl it even though on the site itself customers have to log in to view it.
How do we stop Google from crawling this info/displaying it in rich snippets?
You need to edit the code of your product template
Remove the lines that contains itemprop availability and price, if customer is not logged in.
If you use Google Rich Results Test and use for example the product page you show in your example you'll see that it detects
<meta itemprop="price" content="1999">
<link itemprop="availability" href="http://schema.org/InStock">
You will receive a warning in Google Search for those products, about missing fields.
Hi, did this resolve the issue for you? I've removed this and the price from the product structured data but it is still appearing after a google recrawl. This is driving me mad! Why can't Shopify come up with a solution for this for wholesalers?
Did Shopify get back to you with an answer?
Thanks for getting back. Do you propose any solutions? Maybe hiring third-party Shopify experts that understand this issue and can solve for it?
Does anyone have a solution that actually works?
It seems impossible, since I've contacted at least six app builders and no one had a clear answer. I'm still looking for the solution to hide stock and price in the Google search results. Anyone?!!
Did you have any luck with a solution? We are facing the same problem
Quick update: we removed price from Schema.org Microdata, the variables that google accepts to show on google. We also had to remove Size dropdown on the product page for non-logged in users. This seems to have got it for the while, however it has created other bugs to resolve - the price plus VAT has disappeared from the product pages now!
if you have to be logged in to see the price you can also hide it from Google in main-product.liquid with this code:
Thank you - will try this. We had previously edited out the lines as seen here, which worked for about 1 year before recent, prices were back in Google results.
it has been so long I do not know if this is working or not. it is not as important to me now as I no longer cary the only brand that made it an issue. an issue I have is that I have prices hidden on product page for some items yet they show up on the collections page. I have not tried very hard to tackle this as it's not critical. let me know your results as google will fire back errors if the structured data isn't correct correct
Hello @Uniqwa_C
I would like to give you the recommendation to support you.
- You can try using the app Klevu Search. It will help show/hide Price in Search Results.
- You can also control the visibility of your store products using the "Hide Out of Stock Items" option, which utilizes the default Shopify out-of-stock inventory model. You can visit the URL https://shopify-v2.sparq.ai/theme/general/ and update the setting as shown in the following screenshot : https://prnt.sc/0lOj-3sKmPyn
Once enabled, it will hide items for which Shopify reports out-of-stock quantity.
I hope the above is useful to you.
Best regards,
GemPages Support Team
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025