Passing Variable Price Info into a Text field

This is Wix Stores, right? Not an expert in it, but it shouldn’t be too difficult. Could you show a bit more of the code, especially the part when you click a variant?