Update variable product total amount by javascript
-
I have a plugin that update the product price depended on selected variation. My problem is that there are two prices that my plugin change just one of them. I want to change the code to update the total amount too. I want to know how can I change this amount by javascript.
I checked the page’s template in single-product/add-to-cart/variation.php and find this line that generate the secound/total price:
<div class=”woocommerce-variation-price”>
data.variation.price_html</div>
Is there any way to update this price that can show total amount by javascript?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Update variable product total amount by javascript’ is closed to new replies.