It seems like the cart page is not being applied in the pay link, despite having the Cart Page set in wpdmpp settings – also there is no error handling for this.
Steps:
1 – create pay link
2 – visit pay link
Link is:
my-url.com/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0
Should be: my-url.com/cart/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0
Handling could be:
if(isset($_SERVER['HTTP_REFERER'])) {
header("location: " . $_SERVER['HTTP_REFERER']);
} else {
// Handle error
}
Thanks
Hello, I am using the Client Portal plugin and one thing doesn’t work right when the Download Manager plugin is enabled. I have added a code in the theme’s function.php so when someone logged into the portal (CP-Client type user) logs out, it redirects to the home page. However, the code is not working and redirects to the normal WordPress login page. If I deactivate Download Manager, it works correctly. Are you able to see what the issue is with this? Here are notes from the Client Portal Support:
I checked your functions.php file and confirmed that you added the PHP snippet. See – https://share.getcloudapp.com/YEueBl96.
But still, the issue persists when I tried logging out as brettzeck. Check this recording – https://share.getcloudapp.com/5zujnpzA.
This worked on my test site as you can see here – https://share.getcloudapp.com/JrupGz2P.
On further testing, it seems the Download Manager plugin is having conflicts with the filter. When this is active, the logout URL redirects to wp-login.php. Check this recording – https://share.getcloudapp.com/04u6L1ow.
Just an update on this – it seems not so straightforward as some things happen via ajax and some things happen via php.
The best solution I’ve come up with is a function to listen for ajaxComplete (code example below) which I can then use to fire additional actions in wp to handle order updates. I’d thought to do this with php with the wp_ajax_wpdmpp_async_request, but it’s difficult to fire anything after the ajax requests (priority has to be earlier or they don’t fire).
User would still need to catch the non ajax updates though as well, so it’s also not ideal.
Would be great if any event that updates an order (ajax or php) fired a universal action so that developer can keep order related data updated/synced. If you have some other suggestions do let me know. I’m probably doing this the hard way for no reason 🙂 Thanks
(function($) {
$(document).ready(function() {
// Check if we are in the wpdm admin area
var currentURL = window.location.href;
var targetURL = '/wp-admin/edit.php?post_type=wpdmpro';
if (currentURL.indexOf(targetURL) !== -1) {
// Run the AJAX event handlers only on the target page
$(document).ajaxComplete(function(event, jqXHR, ajaxOptions) {
if (ajaxOptions.url === ajaxurl) {
doSomethingOnAjaxComplete(ajaxOptions, jqXHR);
}
});
} else {
return;
}
// Function to execute when the WordPress AJAX URL is being used for different WPDM actions
function doSomethingOnAjaxComplete(ajaxOptions, jqXHR) {
console.log("WordPress AJAX URL used:", ajaxOptions);
// Get the request data
var requestData = ajaxOptions.data;
// Do something on wpdmpp_async_request;
if (requestData.indexOf('action=wpdmpp_async_request') !== -1) {
// The 'action' parameter is set to 'wpdmpp_async_request'
console.log('wpdmpp_async_request action detected from');
// Get the response data from the AJAX request
var responseData = jqXHR.responseText;
console.log("Response data:", responseData);
// Perform a custom action after the response is received (error or not, doesn't matter)
callMyCustomWPFunction();
}
// Do something on wpdmpp_updateOrderExpiryDate;
if (requestData.indexOf('action=wpdmpp_updateOrderExpiryDate') !== -1) {
// The 'action' parameter is set to 'wpdmpp_updateOrderExpiryDate'
console.log('wpdmpp_async_request action detected');
// Get the response data from the AJAX request
var responseData = jqXHR.responseText;
console.log("Response data:", responseData);
// Perform a custom action after the response is received (error or not, doesn't matter)
callMyCustomWPFunction();
}
// Etc...Do more things on other wpdmpp js ajax actions
}
});
})(jQuery);
Yes, you can do that using the following code:
add_filter("PrivateMessage/Message/RestAPI/getMessage", function ($message) {
//todo: replace "custom_profile_url_function" with proper code
$message->profile->url = custom_profile_url_function($message->profile->ID);
return $message;
});
Hi Nayeem,
thanks. But sorry, again. I added the snippet again at the very end of the functions.php. But from where do I get the Post ID? Is it the part of the URL which can be edited? e.g. hello.de/download/333_1/
Thanks, your help is highly aprreciated.
Regards
Hi,
After updating, we encountered a bug with the feature of adding external links as download buttons.
Example of how it worked previously. Link is added and then the title is changed to something more easily readable:
Now, after the updates, when adding a link to an external website, the link will disappear once changing its title and subsequently updating the page. When changing the title of existing links, the link will also disappear.
Differentiation between external and internal links:
When using links to download.schenker-tech.de (our Download Manager URL), the links will remain, even after changing the title. Only links to “other” websites are affected by this undesirable behavior.
Please help us figure out the root cause why this feature suddenly stopped working. Thank you for your assistance!
okay now, you simply had to add https:// with url.

Hello Martin,
Please provide related page url where you want to add the icons to check it further. If possible please also share temporary admin access in a private reply.
Regards
Tanvir
Hello!
I have the same issues like this topic: #79408
Your answer was:
Hi,
It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php to apply it,
if( isset( $_SESSION[ ‘_wpdm_unlocked_’.$package[‘ID’] ] ) == 1 ) {
$download_url = \WPDM\Package::expirableDownloadLink( $package[‘ID’] );
$link_label = get_post_meta($package[‘ID’], ‘__wpdm_link_label’, true);
$link_label = trim($link_label) != ” ? $link_label : __(‘Download’, ‘wpdmpro’);
$data = ”
“;
}
But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.
Thanks.
I tried the code but it’s not working. Could you have a look if there is an issue with the code or with compatibilites with newer versions of the plugin? Thank you.
And since the topic is several years ago, are there other/better possibilities?
My goal is to type in the password once and then choose which files or the whole zip file you want to download – without using the password every time.
Thanks in advance!
Best Regards
Hello,
Greetings for the day.
Primarily you can control the behaviour by following this reference screenshot: https://prnt.sc/Bj4X5miEoprh
Also, please note that Downloads open in the browser for 3 reasons:
1. when you enable the “Open in browser” option
2. When you attach a file as a URL
3. When you add files from the media library
To force download, you need to keep the “Open in browser” option disabled and upload directly using WPDM or attach a file using the server file browser.
Regards
I was an issue with the newly added feature “file search and pagination” with Asset Manager. From 2nd page or when you search, file url was not compiling properly. I’ve adjust the issue on our side and updated the plugin on your site too. Also, a public update is coming soon.
I understand you want me to purchase this:
If so, will it make the url mapped and encrypted because I can do this by using my ftp?
I need a way to use external files from my second server but the url is encrypted.
Hello S J ( @seb22 ),
When you attach file as URL. WPDM simply redirect to that URL when someone click on download link, there is no way to hide the URL. But, if you want to keep the item protected you may follow any of the following steps:
Hello Maurice Bouchentouf,
Hope you are well. Thanks for the purchase. Can you please share the add-on link URL, for checking your issue and shortcode? please check and let me know
Thank you and regards
what i mean, in case of setting file protection “for logged in users” only, so can i edit the login URL? like to add custom login URL instead of the default /wp-admin
After update today my templates are not working anymore. Need help. I tried verythin, but it shows allways the default template. Please help to solve this issue. Page Link: https://www.hzwei.info/Relaunch/shop-downloads/
Here three examles, the first two have the same result, like you can see on the page, the last one ist different but not wht i need and want.
I wand to show thubs and use the hover_card_3 version.
[wpdm_packages link_template="wolf_ueberarbeitetes_default_template" order_by="date" order="desc" paging="1" items_per_page="10" title="" desc="" cols=1 colsphone=1 colspad=1]
[wpdm_packages link_template="link-template-panel" order_by="download_count" order="desc" paging="0" items_per_page="10" cols=2 colsphone=1 colspad=1 title="Most Downloaded Packages" desc=""]
[wpdm-all-packages items_per_page="10" toolbar="1" order_by="create_date" order="desc"; jstable=1]
The Shortcode documentation is not very good on your page, you shoud show a list of all possible shortcodes or at least better examples and user should be able to copy them to use.
I tried some of your codes but tehy not warking either.
Here is the HTML and CSS Info:
<div class=”card hover_card__3″>
[thumb_200x300]
<div class=”card-body text-center”>
[icon]
<span class=”text-info text-small”>[category]</span>
<h3>[title]</h3>
[sales_price]
<p>
Erstellt am: [update_date]
</p>
————————————————
.w3eden .hover_card__3{
max-with: 300px;
margin-bottom: 30px;
border:0;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.hover_card__3 a{
display: block;
}
.w3eden .hover_card__3 h3{
font-size: 16px;
font-weight: 600;
line-height: 1.4;
}
.w3eden .hover_card__3 .card-footer{
font-size: 12px;
border: 0;
color: #888;
}
.w3eden .hover_card__3 span i{
margin-right: 4px;
}
.w3eden .hover_card__3 .card-body{
padding: 0 20px;
z-index: 999;
position: relative;
}
.w3eden .hover_card__3 .card-body .intro{
display: block;
margin-top: -64px;
background: #fff;
padding: 0 80px;
padding-top: 0px;
border-radius: 50%;
height: 160px;
box-shadow: 0px -2px 1px rgba(0,0,0,0.1);
text-decoration: none;
transition: all ease-in-out 300ms;
padding-top: 48px;
margin-left: -80px;
margin-right: -80px;
}
.w3eden .hover_card__3 .card-body .intro *{
text-decoration: none;
}
.w3eden .hover_card__3 .card-body .intro p{
font-size: 13px;
margin-bottom:0;
color: rgba(0,0,0,0.7);
}
.w3eden .hover_card__3 a img{
transition: all ease-in-out 300ms;
}
.w3eden .hover_card__3:hover a img {
transform: scale(1.2);
transition: all ease-in-out 300ms;
}
.w3eden .hover_card__3:hover .intro{
transition: all ease-in-out 300ms;
margin-top: -70px;
height: 166px;
padding-top: 48px;
}
.w3eden .dl-btn{
display: inline-block;
font-size: 24px;
position: absolute;
left: calc(50% – 36px);
top: 0;
width: 72px;
height: 72px;
padding: 10px !important;
border: 4px solid #ffffff;
margin-top: -100px;
line-height: 64px;
background: var(–color-primary) linear-gradient(45deg, rgba(12,6,121,0.5) 0%, rgba(0,212,255,0.3) 100%);
border-radius: 500px;
padding: 4px;
color: #ffffff;
}
.w3eden .dl-btn img{
max-width: 100%;
}
Hello,
Thank you for your reply.
We need additional time as the add-on is still a work in progress.
Also, in the meantime, you can copy the download link from one drive and attach it with WPDM as a URL.
Regards
Hello Rafal,
Thanks for contacting us and sorry to hear about the issue.
Please make sure you are using wpdm and all the addons of wpdm to the latest versions. Current version of wpdm is 6.2.8. Also try checking by disabling the cache plugin if you are using one. Sometimes cache version of website causes the issue.
However, If the issue still persists, Could you please share related url to check the issue properly. If possible please also share temporary admin access in a private reply. We will inspect the issue closely and solve it quickly.
Regards
Tanvir
Certainly, thank you for the help Nayeem.
Here are the steps in my Zapier zap:
1. A new file is added to our Amazon S3 bucket. The file will be formatted something like 200032-EthnosStatement-202201.pdf
2. Zapier detects the file.

3. ID number is extracted from file name (the first number)
4. Zapier searches for an employee using the extracted ID number:

5. A wordpress post is created by inserting a row into the mysql table. This is a WPDM post type:

6. Another row is added to the mysql database. This time it’s in the wp_postmeta table. Using the post id from the previous step, I am adding post metadata that I am hoping will attach the original file to the post. The zap gets the url from the first step.

Hi,
Greetings for the day.
First please ensure that you are using the latest version of WPDM Pro and the WPDM Archive Page add-on.
If, still the problem exists then I request you to please share your website credentials in a private reply so that I can take a closer look and work with you to get this working.
Here are the details I’ll need –
# Website Login URL
# Username
# Password
Looking forward to hearing from you.