skip to Main Content

Variable scope in Shopify Sections

I'm trying to use a variable in my section file but it doesn't appear to be inherited from it's parent template. For example: index.liquid {% assign foo = "bar" %} {% section 'example' %} sections/example.liquid <h1>{{ foo }}</h1> {% schema…

VIEW QUESTION
Back To Top
Search