Skip to content
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

Remove no downloadable files message when product is service #7486 #7517

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jo-IE
Copy link

@Jo-IE Jo-IE commented Jan 18, 2020

Fixes #7486

Used the edd_receipt_no_files_found_text function to wrap the No downloadable files text.
Fix works locally, text no longer shows up for products that are services.

screenshot

@@ -71,7 +71,7 @@
endforeach;

else :
_e( 'No downloadable files found.', 'easy-digital-downloads' );
apply_filters('edd_receipt_no_files_found_text', __( 'No downloadable files found.', 'easy-digital-downloads' ), $download['id']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jo-IE It looks like this won't get output to the screen because the _e function has been removed. You'll need to replace it with an echo command so that it gets output to the screen once the filter has been applied.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I see. I will get on it right away. Thank you @mintplugins !

@Jo-IE
Copy link
Author

Jo-IE commented Jan 21, 2020

I'm not sure if the build is failing because of my PR but I see some tests failing. Do I need to rectify those?

@cklosowski
Copy link
Contributor

@Jo-IE Don't worry about those. Those failures are due to a change in WordPress core that we just need to write some conditions for. The failures are not for your fix and you don't need to rectify those at this time.

@Jo-IE
Copy link
Author

Jo-IE commented Jan 21, 2020

ok, thank you @cklosowski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap "No downloadable files found" in filter called edd_receipt_no_files_found_text
3 participants