A certain dealer group was allowed to see new products, but on exactly these products a discount note had to disappear that otherwise stays everywhere. The obvious solution would have been to add another condition in the code. Instead, we created a separate product template. That's cleaner, and the client has maintained it themselves ever since.
The case
A B2B merchant has customer groups with different terms. One group sees a note about its discount on all product pages. Then a new product line came in: displays for retail. That discount didn't apply to them, so the note couldn't appear there. On all other products it was meant to stay.
Why "just delete it" would have been wrong
Removing the note from the code would have removed it from all products. Another condition in the code ("if product from line X, don't show") would have worked, but every new exception would have needed a developer again. After a few years, such a template is a knot of special cases nobody understands anymore.
The solution: a separate product template
Shopify allows several templates for product pages. We created a "Displays" template that looks exactly like the normal one, just without the discount note. All existing display products were assigned this template.
The real win: when a new display comes in, the merchant's team simply selects the "Displays" template in the admin. No developer, no code, no ticket.
Important: the template only controls what's displayed. Who may see which products and buy at what price is still handled by the B2B catalogs.
What you can take away
- Not every special behavior needs more code. Often it just needs the right template.
- Good solutions can be maintained by your team. With every adjustment, ask: who does this next time?
- Display and permission are two levels. What someone sees and what someone is allowed to do belong in different places.
- Separate templates exist for products, collections and pages. Special products, one-offs or campaign pages often need no rebuild, just their own template.
Is your theme getting more complicated with every exception? We clean it up and build it so your team can maintain it themselves.





