Hiding wholesale prices on searches

skasinger
New Member
4 0 0

Have a wholesale store where you have to be approved to be able to login and see prices and order. However when an individual searches any of our products on search engine it shows the wholesale price in the results.

blackout info.jpg

Replies 5 (5)
suyash1
Shopify Partner
8656 1062 1406

@skasinger - do you want to hide this price? it will need css but the issue is that it might hide for user logged in too, if you want we can try css

You are welcome to contact me - suyash.patankar@gmail.com, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
skasinger
New Member
4 0 0

I do not want the price to show at all on a search result page. The price should only show up once they are on our page and logged in.

jjustin
Shopify Partner
8 0 1

Search engines will be pulling the price from the schema.org structured data in the code of the product pages.

By wrapping the structured data in an if statement, you should be able to hide it from web crawlers and everyone else unless they're logged in.

Something like:

{% if customer %}

.. Your structured data here..

{% endif %}

The results will still be visible in search engines until the pages are re-crawled.

skasinger
New Member
4 0 0

How do I go about getting help with that bc I am having no luck. 

skasinger
New Member
4 0 0

I think you helped me last time with this problem and it is still happening and I was hoping you could help again, thanks