First check the variant option you have with craft theme is using select box (drop-down) or radio buttons or something else. If theme is is using select box or radio button then pick the class name and replace it with
single-option-selector
Next step check field have same name
[name="id"]
if in your theme case its different please replace it too.
I’m very happy that you help me! But I have some trouble understanding what you mean.
I think in my case it is using radio buttons. But I don’t know where to check the class name. And how i find out if the field has the same name, i don’t know either.
thanks for your help! It’s not the solution yet, but I understand the code a bit better now.
However, I still have to ask a friend if he can explain the connections to me better.
I’m using ‘Prestige’ theme I recently added “Color swatch” to the “Frame Swatch” function but when I select the first value change it is working fine. But when I select the frame variant the price doesn’t change. If I select a frame and then if I refresh this page then the price changes.