Hi everyone,I want to hide the price for some products or collections only, not the whole store.Does anyone know a simple way to do this?
Hey @Thuyhanh
Can you share the link of the collection where you want to hide the prices from? According to that, I can provide you a customized code for your store.
Best,
Moeed
Hi @Thuyhanh
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.
Best regards,
Devcoder ![]()
You can do this easily by creating a custom metafield for both products and collections.
Make a boolean field called hide_price:
-
If true → hide price
-
If false or empty → show price
Then, in your theme, add a condition where the price is shown.
For product only:
{% if product.metafields.custom.hide_price != true %}
{{ product.price | money }}
{% endif %}
For product and collection both:
{% if product.metafields.custom.hide_price != true and collection.metafields.custom.hide_price != true %}
{{ product.price | money }}
{% endif %}
Add this code in these files:
-
sections/main-product.liquid (product page)
-
snippets/card-product.liquid (collection page)
-
or snippets/price.liquid (best option, works everywhere)
Can you share your store URL so I can check your theme and tell you the exact place to add this condition?
This way you can control price for specific products or collections easily.
This is OK, but when you add to cart it still shows the price.
@Eric-HAN Can you share the store URL?
I usually go with an app solution. It helps you target only certain products or collections to hide prices. You can try the free version first. I still use Magic Hide Price.