Forum Replies Created
Try applying this code in function.php file. If it does not meet your requirement, then customization is the only solution.
add_filter('wpdm_get_files', 'hide_file_list_for_guests', 10, 2);
function hide_file_list_for_guests($files, $package) {
if (!is_user_logged_in()) {
return [];
}
return $files;
}
add_filter( 'wdm_before_fetch_template', 'hide_download_link_for_logged_in_users', 10, 3 );
function hide_download_link_for_logged_in_users( $vars, $template, $package ) {
if ( is_user_logged_in() ) {
$vars['download_link'] = '';
}
return $vars;
}
You’d like to hide the main download button (which downloads the package as a ZIP file without stamp) to prevent ZIP downloads, while still allowing users to download the individual files within the package, am I correct?
To hide file list from the download page, apply this hook in your themes function.php file
// hide file list for guests
add_filter('wpdm_get_files', 'hide_file_list_for_guests', 10, 2);
function hide_file_list_for_guests($files, $package) {
if (!is_user_logged_in()) {
return [];
}
return $files;
}
First of all, the problem is not with WordPress Download Manager or file cart add-on. It’s the way your custom JavaScript binds the click event.
I have updated the pdf_viewer.js file and the pdf is opening in a popup.
Root cause(direct binding),
$("a.modalToggle").click(function() {...});
which only binds to elements that exist when the page loads. The WPDM All Packages output is rendered after that point, so those links never received the click handler.
Now, I used a delegated event binding to ensures that all current and future .modalToggle links work
$(document).on("click", "a.modalToggle", function (e) {.. }
Thanks for sharing the credentials. I will provide you an update shortly.
Its working fine now. It was due to the characters in the file name and I have enabled the sanitize file name settings from settings > General > upload settings.
Kindly check.
Don’t worry. I am checking the issue and will provide you with an update shortly.
From the symptoms, my primary suspicion would be a caching issue.
Could you please try clearing your browser’s Local Storage and then test the issue again?
You can do this by opening your browser’s Developer Tools (press F12), navigating to the Console tab, and running the following command:
localStorage.clear();
Kindly enable both the Live and Sandbox PayPal payment methods. Once you’ve set up the PayPal methods, please let me know, and I will check the issue again.
Yes, I have identified the issue.
It will be fixed in the next update.
Hello,
Thanks for reaching out.
The Auto Renew: 1st cycle status means you’re currently in the first year of your subscription. If auto-renew remains enabled, your subscription will automatically renew on June 30, 2027.
Do you want to stop the auto renewal?
Looking forward to your response.
Regards
Yes, wpdm archive page is separate add-on.
Hello,
We spoke with two of our hosting providers, and neither found any issues with the plugin.
Could you please contact your hosting provider and ask them to clarify the exact issue they’re seeing? Having more specific details would help us identify the root cause and investigate it further.
Appreciate your support on this.
Thanks for sharing the information, we are checking the issue.
Sure! Give it a try, and let me know how it goes.
Have a nice day.
Now, I can see the lists. I am checking and provide you with an update shortly.