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:
Mike Jolley 2014-09-01 10:54:16 +01:00
parent 47b9e54797
commit 91149c4ac3
2 changed files with 2 additions and 2 deletions

View File

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