-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom checkout button markup can cause a JS error when clicked. #8834
Comments
So this issue was caused by the |
Some feedback:
|
going to re-open to see if this is something we can take as an approach for backwards compatibility and to reduce that technical debit of specific attributes here. |
I don't think this change requires a specific ID, it just requires any ID. But the feedback should be correct. I think we should be able to remove this line completely: https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/assets/js/edd-ajax.js#L402 and change this line to: $(this).attr('data-original-value', complete_purchase_val); |
Steps to replicate:
|
Don't require the purchase button to have a specific ID attribute #8834
Bug Report
Expected behavior
When I customize my checkout button, I expect it to work still when clicked.
Actual behavior
Due to these changes in the
edd-ajax.js
file https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/assets/js/edd-ajax.js#L402-L405, a customized checkout button will not have the attribute, and therefore possibly fail.Steps to reproduce the behavior
Information (if a specific version is affected):
PHP Version: All
EDD Version (or branch): 2.11
WordPress Version: All
Any other relevant information:
The text was updated successfully, but these errors were encountered: