Hi,
If you want to make any change to the template then clone it and edit the cloned copy. Here is a detailed tutorial on that https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Thanks.
Hello,
We use the short code below to create a table of downloadable files on a page that are private. One has to be signed into our website to view the page and the downloads. When the table lists the Title, it also shows the word “Private:” next to each download title. We would like to remove that text in both the TITLE and the PAGE LINK listed in the table. Please advise where we can manage and change this output of text. Thanks!
Example
Title of actual Download “Co-Extruder – English”
Title shown in the table “Private: Co-Extruder – English”
Shortcode
[wpdm_all_packages items_per_page="30" categories="English" jstable=0 order_by="field_name" order="ASC/DESC" cols="title,download_count|categories|update_date|page_link" colheads="Title|Language|Update Date|File link::355px"]
This reply has been marked as private.
This reply has been marked as private.
I have to check your CSV to find what went wrong. Also, could you please send the CSV download link in a new ticket? We will continue the discussion there. As you are not the author of this ticket you won’t be able to see any private reply from me.
This reply has been marked as private.
It seems to be working again now…
Can we hide the download part on certain Form Locked packages so there is just an email to the user with a external link (YouTube)?
Thanks
It seems to be working again now…
Can we hide the download part on certain Form Locked packages so there is just an email to the user with a external link (YouTube)?
Thanks
This reply has been marked as private.
We have only one file per package. Here is a link -> https://ninjatraderecosystem.com/user-app-share-download/pricevoice/
I was able to modify it from code previously sent like this:
$filepath = str_replace(‘\\’,’/’, $filepath );
$filename = wpdm_basename($filepath);
//modified to get the file name instead of random number
$tmparr = explode(‘.’, $filename );
$filename = get_the_title( $package[‘ID’] ) . “.” . end($tmparr);
wpdm_download_file($filepath, $filename, $speed, 1, $package);
Is there a better way to do this? Also, you had previously said a filter with the ability to use the download file name would be added to the front end, is that still a possibility?
Do you have only one file per package? Please send me a sample download page link. Depending on the number of files the code location will vary.
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.