-
Notifications
You must be signed in to change notification settings - Fork 467
Wrap "No downloadable files found" in filter called edd_receipt_no_files_found_text #7486
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
Comments
Hi! I applied for the recent Developer opening at Sandhills Development and I am very interested in getting more familiar with the codebase. Could I have a go at this issue? Thanks! |
@Jo-IE By all means, if you want to give it a go, you are more than welcome. We appreciate all contributions to EDD. |
@Jo-IE If you haven't already, check out our Contributing guidelines here: https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/CONTRIBUTING.md#making-changes |
thank you @cklosowski ! Also a quick question: How do I view the changes to the add-on? I already have a local environment set up for wordpress/PHP and I am able to add the plugin to a demo site. Do I need to have a demo site set up with products? Thank you in advance! |
Hey @Jo-IE The easiest way is to clone this repository into the From there, creating a product can be done in Downloads > Add New. |
Thanks again @cklosowski , that sounds a lot easier! |
Bug Report
Expected behavior
When I use the Downloads as Services add-on and make a product a "Service", I expect the message "No downloadable files found" to be not shown in the [download_history] shortcode.
Actual behavior
The message is shown in the [download_history] shortcode.
Steps to reproduce the behavior
This happens because the filter is missing here:
https://github.com/easydigitaldownloads/easy-digital-downloads/blob/b2ce5ed02d62737dd17ac665a71a493d9efe5898/templates/history-downloads.php#L74
In other places, it is wrapped in a filter called
edd_receipt_no_files_found_text
:https://github.com/easydigitaldownloads/easy-digital-downloads/blob/b3b09b718d04ded5611b8b34194cbb77190a2c47/templates/shortcode-receipt.php#L207
https://github.com/easydigitaldownloads/easy-digital-downloads/blob/dc24a2a8a325dc87000ba4492cd0e5dc2006740c/includes/emails/class-edd-email-tags.php#L466
A filter should also be added for bundled items here:
https://github.com/easydigitaldownloads/easy-digital-downloads/blob/b3b09b718d04ded5611b8b34194cbb77190a2c47/templates/shortcode-receipt.php#L198
Information (if a specific version is affected):
EDD Version (or branch): master
The text was updated successfully, but these errors were encountered: