No section settings in render App theme extension block

Hello all!

I don’t believe “@app” blocks have access to their parent section’s id or settings, nothing from the section really.

That makes them practically useless, for example in a “featured-product” section, how do I access the selected product section setting?

If I add the custom liquid:

{%- if section.settings.product -%}
# {{section.settings.product.handle}}
{%- endif -%}

in a Featured product section it works just fine, but it doesn’t work in my theme app extension.

Feels like quite the bug to me.

Cheers,

Phil

To whoever stumbles here,

I learned about the Autofill setting for dynamic sources, it mostly solves this issue: https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#autofill

Cheers,

Phil

2 Likes