To fix the first 2 warnings go to Downloads > Settings > Default Values. Then set “Page Template” and “Link Template” options.
And to fix the other 3, please download this file https://www.dropbox.com/s/nkzpvrq5osgyu3m/wpdm-login-form.php?dl=1 and place it in /active-theme/download-manager/wpdm-login-form.php
path. I have added patch here to fix those warnings and this template will override the default one.
This code no longer works in the latest update. The code block is now:
//$plock = get_wpdm_meta($file[‘id’],’password_lock’,true);
//$fileinfo = get_wpdm_meta($package[‘id’],’fileinfo’);
$filepath = str_replace(‘\\’,’/’, $filepath );
$filename = wpdm_basename($filepath);
$filename = preg_replace(“/([0-9]+)[wpdm]+_/”, “”, $filename);
wpdm_download_file($filepath, $filename, $speed, 1, $package);
//@unlink($filepath);
What do I modify to use the file name instead of the string of numbers as before?
It is not possible to use the embedded form in all packages table.
Use a custom link template with [download_link_dynamic]
template tag to render the download button based on lock status. Here is the code to implement this tag.
function wpdm_download_link_dynamic($vars){
if ( wpdm_is_locked( $vars['ID'] ) )
$vars['download_link_dynamic'] = $vars['download_link_extended'];
else
$vars['download_link_dynamic'] = "<a class='btn btn-success' href='".$vars['download_url']."' target='_blank'>".$vars['link_label']."</a>";
return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_download_link_dynamic', 10, 1 );
Hi,
It is not possible to send the guest a download link with the email as the link requires the form submission. But the feature is noted for implementation.
For now, you can add a message on the guest order download page to let the user know they can copy the order ID from the email you sent.
Use a custom template for /wpdm-premium-packages/templates/partials/guest-order-search-form.php
to add the message. This template can be overridden by copying it to /active-theme/download-manager/partials/guest-order-search-form.php
Thanks.
Hi,
Are you referring to the Directory Import option in Downloads > Bulk Import page? In this method, one package is created for each file. Download Manager doesn’t move the files, it just links each file’s location to the package.
Thanks.
This reply has been marked as private.
We’re approaching the solution. Many thanks for that. wpdm-all-downloads.php works so far. Only I don’t want a popup for the password input, but the solution like download_link_extended. Is that possible?
In the same way I would like to achieve the following with link-template-default.php:
If password protected show [download_link_extended] otherwise show “[link_label]“.
Can you rebuild this for me? I am not good at php. ๐
I need urgent help. Please visit this page -https://ps-cardiagnostics.com/download/scania-multi-language-epc-electronic-parts-catalog-2019-03/
If I click on Paypal button link it takes me straight to the official paypal page and checkout from there. After payment, where does it go. The customer has not entered his email address so where does he gets his order ID.
For example, this page – http://ps-cardiagnostics.com/guest-orders/ you have to enter order ID and email address.
Seems like you have to enter these 2 pieces of information before you can get the PDF download link. So if a customer checks out immediately by clicking on paypal how does it work?
Hi. I purchased your Download Manager Pro and ever since I’ve installed it, I had a lot of my guest customers ie. no signups after paypal payment, that they don’t know what to do. At the moment the customers receives an email confirmation order with the download link. Unfortunately, when they click on the link – http://ps-cardiagnostics.com/guest-orders/ they still have to enter order ID and email. At this point, they are clueless even though in the email it contains the order ID. If there an alternative way, where customers do not need to enter these details to get the pdf file. Or a better question is is it possible to include the actual pdf file attach to the email to guest customers after successful payment.
Here is the current purchase confirmation email template to guest
Hello ,
Thanks for your order at [#sitename#].
Your Order ID: [#orderid#]
Purchased Items:
[#items#]
You need to create an account to access your order and to get future updates.
Please click on the following link to create your account:
Signup
If you already have account simply click the above url and login
** If you wish to download quickly without logging in, you can click here.ย Please make sure that you make a note of your email address and your order ID –ย [#orderid#]. You need both these information to download the software
Best Regards,
Sales Team, pscardiagnostics@gmail.com
[#sitename#]
There is no global solution for that.
For open packages, If link template is involved solution is here https://www.wpdownloadmanager.com/support/topic/open-pdfs-in-new-browser-tab/
For all packages table use a custom template of wpdm-all-downloads.php
and add the following code after line 288,
if ( ! wpdm_is_locked( $data['id'] ) ){
$download_link = "<a class='wpdm-download-link btn btn-primary' target='_blank' href='".wpdm_download_url( $data['id'] )."'>Download</a>";
}
Thanks. I understand the part about including a subscription link, but how is the download button generated for those people that already have a subcription and would like to download the file. As of now, the download button changed into a payment button as soon as I associated a price to the package.
Is there a way to use two different shortcodes? For example one shortcode that will display the download button and then have a separate shortcode that can display the payment button? That way members that have access can download from the first shortcode and guests that would like to purchase the download can use the second shortcode?
Please advise.
Now you have to edit template files directly from /acive-theme/download-manager/link-templates/
and /acive-theme/download-manager/page-templates/
I have used template files instead of template editor ( saving in option table ) to avoid similar issue in future.
Hi Shahriar,
I’ve had to give up with the cart on my site. Members can’t deal with it. I’m editing all my downloads to remove role discounts and applying role access to each download. Also, a package with a PDF and zip doesn’t work because they get put into a new zip so the PDF doesn’t get stamped in that case after a cart purchase. This will only be a problem for guest orders now, I’ll live with that.
This means that most PDFs won’t go through the cart anymore, which means they won’t get stamped.
Can you please find a way for all PDF downloads from my site to be stamped, without going through the cart, as long as the user is logged in? Thus:
– Member is logged in and has a subscription plan.
– Member’s role has access to download the PDF.
– They click the Download link, the stamped PDF downloads.
– If they can access the PDF via the Dashboard, it gets stamped there too.
Basically, whenever they download any PDF I would like the stamp applied.
Give me a quote by private message if necessary.
Many thanks,
Mike
Hi,
Please check the Archive Page add-on demo here https://demo.wpdownloadmanager.com/wpdmpro/archive-page-compact/ It has a category filter option. And you can also search for packages and sort by different parameters.
You can use own link template to control the view of each package.
Let me know if works for you or you want something different.
Thanks.
I have tested Yoast breadcrumb with one of our themes ( http://prntscr.com/prnhm4 ). We used yoast_breadcrumb
function to render breadcrumb. The breadcrumb should render the archive page URL in that part of Breadcrumb.
But in your case it is just links to /download
There is nothing in the download
page, so it is just displaying the matching content which is an image in your case. Maybe your theme implemented the breadcrumb in a different way.
Please check if the download archive- is active on your settings http://prntscr.com/prnith and then check the single.php
of your theme to find out how it is showing the breadcrumb.
This reply has been marked as private.
Did you add the template tag [membership_levels]
to your custom link-template? The code implements the template tag but you have to use it on your template to make it visible. You also have to write CSS to adjust the position of the level.
If you are not familiar with template customization please check this post https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Hi,
After submitting the email address Download Manager did send the email with a download link. The spinning never ends because WP Super Cache is modifying the AJAX response sent by Download Manager. It is adding the following message with WPDM response which is breaking the expected JSON format of WPDM response.
<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->
http://prntscr.com/prk4z8
Fixing this issue will automatically fir the email lock spinning.
Thanks.
Download limit message is coming from Download Limit Message: option but you had no login link there. I have updated the option with the login link. Now link should appear with the message.
http://prntscr.com/prj5g9
Hi Aly,
You can change the download button label ( text ) from the package settings meta box. The text comes from the “Link Label” option. So, just set your custom text there.
https://www.evernote.com/l/AUcPrMhQWWBE57vLe-McbypCiQ2O6Tu_lv4B/image.png
Thanks.
Hello. When viewing a package, I see the breadcrumb at the top (under Blog Latest News). However, if I click the “download” link in that breadcrumb, it just presents me with a download.png image. I have breadcrumbs enabled in Yoast and they work fine on the rest of my site (i.e., blog posts). Is there something else special that I need to do to get the breadcrumbs working properly with WP Download Manager?
Thanks
I did some searching, but couldn’t find any conversation on my issue. I’m looking to this page: https://www.wpdownloadmanager.com/download/wpdm-directory-add-on/ for support. It says “โ category: use any category slug here if you want to create an archive page for that specific category or don’t use the parameter” However, the shortcode generator only allows a single category to be selected and it inserts it’s ID, not it’s slug.
I currently have 6 top-level categories. [wpdm-archive cat_view=”extended” showcount=1 button_style=”info” link_template=”5db8acc6b6246″ order_by=”post_title” order=”asc” items_per_page=”10″]
as seen here: https://www.screencast.com/t/oYM4O4fE
I’d like to have a page that has all but one of them.
If I use the shortcode generator, I can only pick 1 category and it creates: [wpdm-archive category=”114″ cat_view=”extended” button_style=”default” link_template=”link-template-audio” order_by=”post_title” order=”asc” items_per_page=”10″]
Category 114 is Letters.
If I use all the ID’s of the categories I want it breaks: [wpdm-archive category=”121,272,119,117 ” cat_view=”extended” button_style=”default” link_template=”link-template-audio” order_by=”post_title” order=”asc” items_per_page=”10″]
If I try to use the slugs of the categories I want, like mentioned in the doc [wpdm-archive categories=”articles,letters,master-messages,scripts” cat_view=”extended” showcount=1 button_style=”info” link_template=”5db8acc6b6246″ order_by=”post_title” order=”asc” items_per_page=”10″]
it has no impact: https://www.screencast.com/t/9cIuubfkc
What am I missing or messing up?
Yes, login form should be showed to visitors to download the files after the limit. Can you describe the steps you followed I m not able to replicate the same from my end.
When I m trying it show like this without link or form https://prnt.sc/pqy3j4
and sometimes when I click on download it shows this error – https://prnt.sc/pqy3q7
I tried adding an ID column but when I do the import does not work. I see the plugin reports success and no error but afterwards the item is not found when I look under All Downloads.
Here’s is a link to the csv: https://drive.google.com/file/d/1y_YgupNMxbyBhrHQcEwS07j3q0BEPAme/view?usp=sharing
when I try to modify a download I cannot link it to categories, the category choice box is not displayed
the category choice box is displayed only in “quick edit” when downloads are in list mode