Merge pull request #3326 from justinstern/master
Bugfix: Always Submit Selected Shipping Method on Update Checkout
This commit is contained in:
commit
2ec17f3160
|
@ -8,8 +8,8 @@ jQuery(document).ready(function($) {
|
||||||
|
|
||||||
if (xhr) xhr.abort();
|
if (xhr) xhr.abort();
|
||||||
|
|
||||||
if ( $('select#shipping_method').size() > 0 )
|
if ( $('select#shipping_method').size() > 0 || $('input#shipping_method').size() > 0 )
|
||||||
var method = $('select#shipping_method').val();
|
var method = $('#shipping_method').val();
|
||||||
else
|
else
|
||||||
var method = $('input[name=shipping_method]:checked').val();
|
var method = $('input[name=shipping_method]:checked').val();
|
||||||
|
|
||||||
|
@ -438,4 +438,4 @@ jQuery(document).ready(function($) {
|
||||||
$('body').trigger('init_checkout');
|
$('body').trigger('init_checkout');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue