Closed taxilian closed 1 year ago
Hmm; it looks like the formatExpiry function is actually coming from the 'js/jquery-payment/jquery.payment.min.js' file in the woocommerce code; it doesn't happen if paypal isn't installed, though, so the compatibility issue is more nuanced. Still trying to figure it out, but any ideas would be appreciated. I'd like to be able to use this plugin but I can't if it breaks my other ones
Okay; kept digging and now I'm convinced that it isn't the fault of this plugin, this plugin must just be somehow triggering woocommerce to include a particular file (woocomerce/assets/js/frontend/credit-card-from.min.js
) which adds it. still working on a fix, but I'll stop pointing fingers when the relationship appears to be coincidental -- hopefully if someone else hits this the record of this issue will help point them in the right direction more quickly
Describe the Bug
When this plugin is enabled and another payment plugin is also enabled which uses a select dropdown for the "cardExpiryMonth" (
.wc-credit-card-form-card-expiry
) or year fields then this plugin prevents that one from working.I traced it through the javascript to a point where a "formatExpiry" function is called on the field
To Reproduce
Expected Behavior
The plugin should never mess with fields that don't belong to it -- at the very least it should definitely not be trying to format the value of a select field
Actual Behavior
It's impossible to set the dropdown value of a select field with class "wc-credit-card-form-card-expiry" while the paypal plugin is enabled on the checkout page
Environment