• Resolved mdk22

    (@mdk22)


    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.

    View post on imgur.com

    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)
  • Hi @mdk22!

    Since this requires custom coding, which is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For additional assistance on this topic, we recommend getting in touch with one of the customization experts listed on the WooCommerce Customizations Page; they can help you with the code you need.

    Also, you can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack, you could find help from the community of open-source developers for WooCommerce that hangs in there.

    Cheers!

    Hi there,

    We haven’t heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, the provided information was helpful, and you solved the issue. If you have any further questions, we recommend creating a new thread.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Update variable product total amount by javascript’ is closed to new replies.