Hello community,
Any thoughts on how to grab the variant price of the user selected variant in a product page?
In this example I want to grab $11
Original price is $10 + a $1 surcharge.
I can grab $10 with the following code:
$w(‘#productPage1’).getProduct()
.then( (product) => {
let price = product.formattedPrice
For the price of the variant I’m trying but it still grabs $10:
$w(‘#productPage1’).getProduct()
.then( (VariantInfo) => {
let pricev = VariantInfo.formattedPrice
Any thoughts help!! Thank you!!!