Breaks checkout shipping recalculation
-
The plugin prevents shipping methods from recalculating after entering a zip/postcode, resulting in inaccurate shipping options.
This is due to the
move_checkout_email_field
method inclass-wc-jilt-checkout-handler.php
.
The code:if ( isset( $fields['billing']['billing_postcode'], $fields['billing']['billing_phone'] ) ) { $fields['billing']['billing_postcode']['class'] = array( 'form-row-first'); $fields['billing']['billing_phone']['class'] = array( 'form-row-last' ); }
removes the ‘address-field’ class from the postcode field, which is what the shipping recalculation relies on. An array_merge is probably more appropriate, but I haven’t tested.
Thanks!
Will
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Breaks checkout shipping recalculation’ is closed to new replies.