• Resolved willgorham

    (@willgorham)


    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 in class-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

    • This topic was modified 7 years, 1 month ago by willgorham. Reason: Code formatting
    • This topic was modified 7 years, 1 month ago by willgorham.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jilt

    (@jilt)

    Hey Will!

    Thanks for reporting this and sorry about the issue. I’ve fixed this in our development version and we’ll be releasing an update in the next few days ??

    thanks again!
    Max

    Thread Starter willgorham

    (@willgorham)

    Thanks Max! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Breaks checkout shipping recalculation’ is closed to new replies.