0
how do I go about reloading payment methods in WooCommerce based on delivery method selection? Basically any click on input within the below:
<ul id=”shipping_method”> <li> <input type=”radio” name=”shipping_method[0]” data-index=”0″ id=”shipping_method_0_flat_rate5″ value=”flat_rate:5″ class=”shipping_method” checked=”checked” data-dashlane-rid=”9252c594914515b8″ data-form-type=”other”> <label for=”shipping_method_0_flat_rate5″>Wysyłka krajowa pobraniowa: <span class=”woocommerce-Price-amount amount”><bdi>25,00 <span class=”woocommerce-Price-currencySymbol”>zł</span></bdi></span></label> </li> <li> <input type=”radio” name=”shipping_method[0]” data-index=”0″ id=”shipping_method_0_flat_rate1″ value=”flat_rate:1″ class=”shipping_method” data-dashlane-rid=”26d51c47f4584e4a” data-form-type=”other”> <label for=”shipping_method_0_flat_rate1″>Wysyłka krajowa przelew zwykły – przedpłata: <span class=”woocommerce-Price-amount amount”><bdi>20,00 <span class=”woocommerce-Price-currencySymbol”>zł</span></bdi></span></label> </li> <li> <input type=”radio” name=”shipping_method[0]” data-index=”0″ id=”shipping_method_0_flat_rate4″ value=”flat_rate:4″ class=”shipping_method” data-dashlane-rid=”b174295006b8ee5e” data-form-type=”other”> <label for=”shipping_method_0_flat_rate4″>Szybkie płatności – przedpłata: <span class=”woocommerce-Price-amount amount”><bdi>20,00 <span class=”woocommerce-Price-currencySymbol”>zł</span></bdi></span></label> </li> </ul>
should reload
<ul class=”wc_payment_methods payment_methods methods”>(…)</ul>
Thanks!
[ad_2]