I am trying to format the price using ‘Magento_Catalog/js/price-utils’,
require(
[
'jquery',
'Magento_Catalog/js/price-utils'
],
function ($, priceUtils) {
console.log(priceUtils.formatPrice(selectedPrice));
});
Can someone help me with this?
I am getting the selected price from the product view.
Thanks