Forum Replies Created
Hello,
Thanks for reaching out.
Kindly share temporary login credentials in a private reply to check the issue thoroughly.
Regards
Hello,
Thanks for reaching out.
Pleas make sure you are using the latest v7.5.2. If the issue persists in the latest version please share the order id and license key in a private reply.
Looking forward to your response.
Regards
Don’t worry. We are checking the issue and will provide you with an update shortly.
Hello,
Thank you for reaching out and reporting this issue to us.
We are investigating it and will provide you with an update as soon as possible. Also share the download manager version that you are using.
Regards
Hello,
Kindly share related URL, screenshots and temporary login credentials to check the issue.
Looking forward to your response.
Regards
We have double checked the issue. Something is blocking the download link for guest users.
It would be very helpful if you could create a staging site for testing. We’ll need to deactivate all plugins except Download Manager to check the issue.
You can also give it a try.
Thanks for your understanding.
Kindly try adjusting the private download link usage and expiration limit.
Hello,
Thanks for reaching out.
I have checked downloading the package and the download link appeared to be working fine. Here is the recording, screenshot
Regards
Hello,
Thanks for reaching out.
Kindly share temporary login credentials to check the issue from your end.
Regards
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.