On my product page, I want to show what the instalments on an interest-free credit payment plan would look like.
What I usually do is:
2. Look for a function called _updatePrice or something like this.
3. Add a global variable to it, like this:
Then you can access the current variant's price no matter where you are with window.product_variant.