How to refresh shipping methods on the order form?
-
For the purposes of the project I included shipping methods in order form.
I used the following code for this:<?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> <?php do_action( 'woocommerce_review_order_before_shipping' ); ?> <?php wc_cart_totals_shipping_html(); ?> <?php do_action( 'woocommerce_review_order_after_shipping' ); ?> <?php endif; ?>
Shipping methods do not update when you change the billing and shipping fields on the form, only the shipping amount in the summary changes.
I can’t use location.reload().
Could you help me to solve the problem?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to refresh shipping methods on the order form?’ is closed to new replies.