Merge pull request #12475 from leogermani/patch-1

get_payment_method relies on a more generic DOM element
This commit is contained in:
Mike Jolley 2016-12-06 11:18:58 +00:00 committed by GitHub
commit 0c2d070d72
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {