最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Woocommerce variable product's total amount by javascript

programmeradmin5浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论