Javascript problem … no update price
-
I’m using a custom theme that they need to add options to, but the theme has a problem to update the price dynamically in page product
javascript gives me this error when I click on an option
Uncaught TypeError: this.priceDiv.contents().first()[0] is undefined updatePrice /wp-content/plugins/software-sales-prices/view/frontend/web/product/main.js?ver=5.5.1:83 jQuery 15 _create /wp-content/plugins/software-sales-prices/view/frontend/web/product/main.js?ver=5.5.1:20 jQuery 7 <anonymous> /product/company-registration/:716
That doesn’t seem to find the path to woocommerce-Price-amount
this.priceDiv = this.isOnSale ? $(‘#product-‘+ this.productId +’ .summary ins .woocommerce-Price-amount’) : $(‘#product-‘+ this.productId +’ .summary .woocommerce-Price-amount’);
this.priceDiv.contents().last()[0].textContent = formatedPrice;
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Javascript problem … no update price’ is closed to new replies.