Disable default payment method
-
Hi there,
How can I disable the default payment method on checkout page?
document.addEventListener(‘DOMContentLoaded’, function () { $ = jQuery; $(document).on(‘updated_checkout’, function () { document.querySelector(‘.woocommerce-checkout-payment [name=”payment_method”]’).checked = false; document.querySelector(‘.payment_box’).style.display = ‘none’; document.getElementById(‘place_order’).innerHTML = ‘Choose Payment Method’; }); });
I found that code from here, but this is not working properly:
https://element.how/woocommerce-no-default-payment-method/
I would like that the customer can see all the payment methods first and after they have chosen the bank which they would like to pay then the banks drop downs would open.
Best Regards,
Tuomo Nurkkala
The page I need help with: [log in to see the link]
- The topic ‘Disable default payment method’ is closed to new replies.