Recognize all :input checkout fields with ID, not just input (JS)
This commit is contained in:
parent
13744479f1
commit
772244d82f
|
@ -255,10 +255,10 @@ jQuery( function( $ ) {
|
|||
|
||||
var country = $( '#billing_country' ).val(),
|
||||
state = $( '#billing_state' ).val(),
|
||||
postcode = $( 'input#billing_postcode' ).val(),
|
||||
postcode = $( ':input#billing_postcode' ).val(),
|
||||
city = $( '#billing_city' ).val(),
|
||||
address = $( 'input#billing_address_1' ).val(),
|
||||
address_2 = $( 'input#billing_address_2' ).val(),
|
||||
address = $( ':input#billing_address_1' ).val(),
|
||||
address_2 = $( ':input#billing_address_2' ).val(),
|
||||
s_country = country,
|
||||
s_state = state,
|
||||
s_postcode = postcode,
|
||||
|
@ -279,10 +279,10 @@ jQuery( function( $ ) {
|
|||
if ( $( '#ship-to-different-address' ).find( 'input' ).is( ':checked' ) ) {
|
||||
s_country = $( '#shipping_country' ).val();
|
||||
s_state = $( '#shipping_state' ).val();
|
||||
s_postcode = $( 'input#shipping_postcode' ).val();
|
||||
s_postcode = $( ':input#shipping_postcode' ).val();
|
||||
s_city = $( '#shipping_city' ).val();
|
||||
s_address = $( 'input#shipping_address_1' ).val();
|
||||
s_address_2 = $( 'input#shipping_address_2' ).val();
|
||||
s_address = $( ':input#shipping_address_1' ).val();
|
||||
s_address_2 = $( ':input#shipping_address_2' ).val();
|
||||
}
|
||||
|
||||
var data = {
|
||||
|
|
Loading…
Reference in New Issue