How to update promotional pricing when changing product variants?

Hello,

I recently changed themes and I am trying to reinstall my promotional financing pricing message. I’ve never had an issue before, I would place my code in my product.liquid and then theme.js. This time no matter what I do I can’t get the promotional price to update when the variant changes. Below is the code I’ve found in my theme.js and I am pretty sure this is the correct spot. I’ve tried using “newVariant.price” and placing it in many spots within that code but nothing works. Any help is greatly appreciated.

key: “_updateProductPrices”,
value: function _updateProductPrices(newVariant, previousVariant) {
var productPrices = this.element.querySelector(‘.price-list’);

if (!newVariant) {
productPrices.style.display = ‘none’;
} else {
if (previousVariant && previousVariant[‘price’] === newVariant[‘price’] && previousVariant[‘compare_at_price’] === newVariant[‘compare_at_price’]) {
return; // The price do not have changed so let’s return to avoid changing the DOM for nothing
}

productPrices.innerHTML = ‘’;

if (newVariant[‘compare_at_price’] > newVariant[‘price’]) {
productPrices.innerHTML += “<span class="price price–highlight" data-money-convertible>”.concat(Currency.formatMoney(newVariant[‘price’], window.theme.moneyFormat), “”);
productPrices.innerHTML += “<span class="price price–compare" data-money-convertible>”.concat(Currency.formatMoney(newVariant[‘compare_at_price’], window.theme.moneyFormat), “”);
} else {
productPrices.innerHTML += “<span class="price" data-money-convertible>”.concat(Currency.formatMoney(newVariant[‘price’], window.theme.moneyFormat), “”);
}
productPrices.style.display = ‘’;
}
}

This is the code I am trying to place into above js to retrieve the updated price.

$(‘.finance-as-low-as’).attr(‘data-amount’,newVariant.price);
finance.ui.refresh();
}

I figured it out, my theme has a minified js and I need to make my changes there.

Hello,

im actually having the same problem on my end. My price changes from 7 to 7.25 and it’s not updating on Instagram. WhT can I do