I’m trying to customize one of my sections (either a custom Liquid section or a product template section) so that it displays different content based on the product tag (Checkout). For example, if a product has the tag premium, I want to show a special message or block of HTML, but if it doesn’t, it should show the default content.
I’m comfortable editing Liquid and JSON templates, but I’m not sure what the best approach is to conditionally display content based on tags within a section.
Has anyone implemented something similar? Is there a reliable way to check for a specific tag inside a section file or a block?