let productPriceSimple = function () {
let productSimple = $('.product-type-simple');
let productSimplePrice = productSimple.find('.price strong');
let productSimplePriceText = productSimplePrice.text();
productSimplePrice.empty();
let productQuantity = productSimple.find('input[type="number"]');
let productQuantityValue = productQuantity.val();
let price = productQuantityValue * productSimplePriceText;
productSimplePrice.text(price);
$('.product-type-simple .jq-number__spin').on('click', function () {
let productQuantity = productSimple.find('input[type="number"]');
let productQuantityValue = productQuantity.val();
let price = productQuantityValue * productSimplePriceText;
productSimplePrice.text(price);
});
};
productPriceSimple();
animation-direction: normal;
animation-fill-mode: forwards;