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?