Multiple shipping options revalidation issue
-
If the WooCommerce instance has multiple shipping options (even just enabling Woo’s default Free Shipping and Flat Rate for testing) and user toggles back and forth between Shipping Methods then the Card Number field is updated. However, there is no indications that the Card Number field is updated and user can not submit to check out, but has no idea why.
I’ve reduced the test case to using TwentyTwenty theme on latest WordPress with just Free Shipping and Flat Rate shipping enabled (disabled our typical WooCommerce UPS Shipping plugin for good measure) and the issue still exists.
Steps to recreate the issue:
1. Visit https://bioclearmatrix.com and add product to cart.
2. Proceed to /checkout/
3. Fill out Shipping Address in order to AJAX in Shipping options (once detected that valid shipping address is entered)
4. Fill out Payment fields with valid credit card info.
5. Toggle to a different shipping option in Shipping OptionsYou will see that the credit card icon (right-hand side of Card Number) field goes from Visa, Mastercard or whatever was used, to a gray icon. User can not submit for checkout at this point, unless they’re clever and know that they need to re-enter their credit card number again. (please see screenshots)
https://www.dropbox.com/s/6yp1vwcf6glwnyr/Screenshot%202020-01-21%2013.45.10.png?dl=0
https://www.dropbox.com/s/f1prkpzgj1kffwy/Screenshot%202020-01-21%2013.45.23.png?dl=0
I’ve done some initial debugging and found that if I edit WooCommerce’s
checkout.js
and remove the class selector for.woocommerce-checkout-payment
on Line 346 then everything works fine. Not sure if CardConnect is not handling the update properly, or if there needs to be an additional condition for CardConnect to check?https://github.com/woocommerce/woocommerce/blob/master/assets/js/frontend/checkout.js#L346
The page I need help with: [log in to see the link]
- The topic ‘Multiple shipping options revalidation issue’ is closed to new replies.