Backwards ship-to-different-address logic on checkout.
When you choose the option to ship to billing only, the second condition would make the checkout try to set shipping address to non-existent fields. cc @claudiosmweb
This commit is contained in:
parent
47b9e54797
commit
91149c4ac3
|
@ -34,7 +34,7 @@ jQuery( function( $ ) {
|
|||
s_address,
|
||||
s_address_2;
|
||||
|
||||
if ( $( '#ship-to-different-address input' ).is( ':checked' ) || $( '#ship-to-different-address input' ).size() === 0 ) {
|
||||
if ( $( '#ship-to-different-address input' ).is( ':checked' ) ) {
|
||||
s_country = $( '#shipping_country' ).val();
|
||||
s_state = $( '#shipping_state' ).val();
|
||||
s_postcode = $( 'input#shipping_postcode' ).val();
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue