A developer is experiencing issues accessing product tags within a Shopify section template, questioning if changes in Shop 2.0 have affected the standard approach.
The Problem:
Traditional Liquid code for iterating through product.tags and checking if tags contain specific words isn’t working in section templates
The developer cannot even display tags using basic syntax
Multiple code variations have been attempted without success
Proposed Solutions:
One user suggests accessing the parent snippet to retrieve product tag data, providing a working example that checks for a “custom” tag and sets a boolean flag
Another user confirms the basic loop structure should work and recommends adding a {% break %} statement when a matching tag value is found to stop further iteration
Status: The discussion remains open with potential workarounds shared but no definitive explanation for why the standard approach fails in section templates.
Summarized with AI on November 23.
AI used: claude-sonnet-4-5-20250929.