On the checkout page, the first is PayPal, then Stripe. How to swap them so that Stripe is the first and selected by default?
1 answer
In the settings of Woocommerce -> Payments, you can drag Stripe above and save, but PayPal is still selected by default, although it is below now.
We solve this code jQuery:
jQuery(document).ready(function(){ jQuery('#payment_method_paypal').removeAttr('checked'); jQuery('#payment_method_stripe').attr('checked', 'checked'); }); |
