Closest product in App Theme Block Extension

Hi everyone,
I’m trying to figure out if it’s possible to access a specific product (e.g. the closest product from a list) within an App Block Theme extension. This works in templates, but I haven’t been able to get it to work through an app block.

Is this functionality not yet supported, or am I missing something?

Thanks in advance for any help!

What exactly do you mean by “closest product from a list”?

Now, you can insert blocks (including app blocks) directly into a product grid → product card, but to be able to render any data for a specific product (for example reviews, favorite), I’d need a reference to that product.

In a theme block, this can be done using the “closest product” approach. However, I haven’t found a way to do this in an App Theme Block yet.


Did you try using “autofill”: true?
Used to work on traditional sections, I havent tested on new themes yet.

1 Like

That’s magic, you are my hero! It works as expected.

Thank you so much for your time and for saving mine.
Jan