Merge pull request #12475 from leogermani/patch-1
get_payment_method relies on a more generic DOM element
This commit is contained in:
commit
0c2d070d72
|
@ -77,7 +77,7 @@ jQuery( function( $ ) {
|
|||
$payment_methods.filter( ':checked' ).eq(0).trigger( 'click' );
|
||||
},
|
||||
get_payment_method: function() {
|
||||
return wc_checkout_form.$order_review.find( 'input[name="payment_method"]:checked' ).val();
|
||||
return wc_checkout_form.$checkout_form.find( 'input[name="payment_method"]:checked' ).val();
|
||||
},
|
||||
payment_method_selected: function() {
|
||||
if ( $( '.payment_methods input.input-radio' ).length > 1 ) {
|
||||
|
|
Loading…
Reference in New Issue