Need a page refresh everytime a variant changes to get the correct code to load

I’ve finally been able to implement the desired behavior of our online shop :slightly_smiling_face:

We are using Craft Version 8.0.0

In product-variant-options.liquid I assigned a class to the option buttons (line 52):

And added in main-product.liquid the following code:


** @Guleria **Thx for your help!