Studio Theme remove price and add to cart button by collection/product type/or theme template

Topic summary

A user is working with Shopify’s Studio Theme and needs to selectively hide pricing and add-to-cart buttons for specific products rather than site-wide.

Current Situation:

  • Products are already organized by collection, product type, or theme template
  • Previously achieved this functionality in an older theme using custom code and theme templates
  • The old code is not compatible with the Studio Theme

Goal:
Find a solution to conditionally remove price and add-to-cart elements based on product groupings (collection, product type, or theme template) that works with the Studio Theme’s structure.

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

I am working with Studio Theme and want to remove the price and the add to cart button for specific products. I am not looking to remove the price for all products. I currently have the products grouped easily either by collection, product type, and theme template. The theme template is how I achieved this in an older theme by creating a new theme template, but the old code I used with the previous theme is not working with the Studio Theme.