Goal: hide prices on collection pages only for certain products in the Studio 2.0 theme, while keeping product-page pricing intact.
Initial attempt: a CSS approach targeting collection.handle != ‘online’ hid prices too broadly (affecting all products outside the “online” collection), with a section-specific override—insufficient for per-product control.
Implemented solution: use a product tag and Liquid (Shopify’s templating language) to conditionally suppress the price render per item.
Tag products to hide with “in-store-only”.
In Snippets/card-product.liquid, set a flag when the tag is present:
assign hidePrice = card_product.tags contains ‘in-store-only’
Replace the price render with a conditional:
unless hidePrice → render ‘price’ → endunless
Outcome: works as intended; prices are hidden only for tagged products on collection pages. No theme-wide CSS hacks required.
Status: resolved. A follow-up link was posted asking for similar help on another theme (Fashionopolism), but not addressed within this thread.
Summarized with AI on December 29.
AI used: gpt-5.
I need to be able to hide the price on the collection pages for specific products. I have edited the code based on other recommendations in the forum, but it has hid all product prices not the specific ones.
There are two ways that the products are separated and can be identified:
Products that must have their price HIDDEN on the collections page are using the “in-store-only” page template and
are NOT in the “online” collection (linked below).