v3.0.4 breaks checkout button “DEVELOPERS: xxx”
-
Hi,
After installing version 3.0.4, the checkout button breaks. The cause is broken Javascript. I’m using Ubuntu Firefox 49.0
The bug is in the following 2 files:
assets/js/stripe_checkout.js assets/js/stripe_checkout.min.js
Please see my patch below. It also needs to be applied to the minified version:
--- a/site/wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe_checkout.js +++ b/site/wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe_checkout.js @@ -42,20 +42,21 @@ jQuery( function( $ ) { // Don't open modal if required fields are not complete if ( $( 'input#terms' ).length === 1 && $( 'input#terms:checked' ).length === 0 ) { return false; } if ( $( '#createaccount' ).is( ':checked' ) && $( '#account_password' ).length && $( '#account_password' ).val() === '' ) { return false; } // check to see if we need to validate shipping address + var $required_inputs; if ( $( '#ship-to-different-address-checkbox' ).is( ':checked' ) ) { $required_inputs = $( '.woocommerce-billing-fields .validate-required, .woocommerce-shipping-fields .validate-required' ); } else { $required_inputs = $( '.woocommerce-billing-fields .validate-required' ); }
Note that the $required_inputs variable is not correctly declared. Can you please include this in v3.0.5. This is a critical bug.
Thanks,
Leo
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘v3.0.4 breaks checkout button “DEVELOPERS: xxx”’ is closed to new replies.