Custom Layout for variants


Hello everybody,

i have been working with the following tutorial: and so far it is doing fine. My layout is getting changed but only if i press the reload - Button. Is there any possibility that i can trigger this automatically before the page is shown. I want to show only some fields for variants of a product.

Thank you for any kind of advice. :slight_smile: