Force update of the checkout page woocomerce

0

Hi. My store does not update the order value when I change payment method ... How can I force this update in PHP functions or jquery script / ajax etc ? woocomerce updates the page in ajax , but this does not work correctly if I use rebates for a specific payment method because when updating the form of payment the value is not being updated correctly, I have to refresh the window to make it possible.
I need the window to refresh when I change the radios buttons of the payment forms. Thanks

Edit

Here's the function of the Woocomerce payment method

<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
?>
<li class="wc_payment_method payment_method_<?php echo $gateway->id; ?>">
    <input   id="payment_method_<?php echo $gateway->id; ?>" type="radio" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> data-order_button_text="<?php echo esc_attr( $gateway->order_button_text ); ?>" />

    <label for="payment_method_<?php echo $gateway->id; ?>">
        <?php echo $gateway->get_title(); ?> <?php echo $gateway->get_icon(); ?>
    </label>
    <?php if ( $gateway->has_fields() || $gateway->get_description() ) : ?>
        <div class="payment_box payment_method_<?php echo $gateway->id; ?>" <?php if ( ! $gateway->chosen ) : ?>style="display:none;"<?php endif; ?>>
            <?php $gateway->payment_fields(); ?>
        </div>
    <?php endif; ?>
</li>
    
asked by anonymous 10.09.2018 / 13:21

0 answers