Need Help on How to Hide Price for Select Items From Appearing on Google Search Engine

There are select items within our product catalog where we do not want to show a product’s price. We were able to create a specific product template to meet this requirement when viewing the individual product page on our website. However, the price for these items are appearing on the Google Search Listing.

When this issue was first discovered, a coding change was implemented in our snippets/structured-data.liquid file to send price as zero (under the “Offer” section) if the item is associated with this specific template. After this change was made, a reindex of the URL page was requested with Google and the next day, the price was no longer showing. We thought this had corrected the issue.

However, I checked the same product today and the price is now showing on the Google Search Listing again. The URL was reindexed again after my previous check. I have verified that the price is 0 in the Product Snippet that Google recrawled reflects a zero price.

Need help to figure out what next steps need to be taken to hide the price from appearing in the Google Search Listing once and for all.

Hi @SSC-AshleyB

Did you change your application/ld+json in your product section?

I don’t think a change was made to this section. Could you help point me to where this resides within Shopify to confirm? Would this be in the “Edit Code” section or under the “Customize” section?

Hi,

You can set the price to $0 using JSON-LD for SEO. But this isn’t a ‘once for all’ solution, as Google’s algorithm keeps changing and you will have to check the search results often.

Another solution is to completely remove the product structured data which means you won’t be eligible for rich results.

However, it isn’t mandatory that Google can’t get the prices if you remove the structured data. It can get the price from the source code.

So, another solution is you can:

  1. Remove the liquid code entirely or

  2. Hide the prices visually( you can do so if you’re using the Shopify 2.0 theme by going to the product information section → hide the product price) and in the source code.

Please let me know if this helps your query.