I have an existing Download Manager Free plugin installed. How do I add my new Pro license? I don’t see anything under Downloads > Settings about licenses. I did add my wpdownloadmanager.com login to the Updates page. Under “Purchased Add-ons” it shows nothing.
I have some documents on my website which are linked as documents from Media, i would like to add these to Download Manager so i can track downloads. For example on this page, http://culchethhigh.org.uk/parental/ there are a list of policies and these documents that i want adding.
I have gone through all the Default Template options and cant find one that is suitable as i would like one that when viewed by the public they dont see the file size, downloads and a download button, its is just a text link as i already have.
Not all answers solve my questions, I will number the questions, make it easier?
(Tried the ol list but no numbers?)
1 File Cart shortcode [wpdm_file_cart]
► This will show the whole Cart, what I want is the tabs/buttons that will take you to the File Cart to be in the header, instead of floating on the right side. So it would be great if there was a shortcode to solve this.2 Not clear which name you want to change. Could you please send a screenshot pointing the location?
► Here I mean the same tab/button that send you to the cart. Right now it says: “Regiobranding downloads”. I would like there just Downloads or just a icon. The text is not wrapped in a span or something so to work it with CSS is also difficult. See https://www.iqheadquarter.nl/regiobranding/regiobranding-categorie/kaart/ for what I mean, right side the big tabs.3 Possible but requires lots of customization to show cart on the pop-up.
► Maybe it is easier to open in Lightbox? Is that possible?4 Please translate the text from /wpdm-file-cart.php file. Currently, the add-on doesn’t have the language file.
► Does this mean I have to do this again every time when the Add on had an update?5 My question: I combine File Cart with Form Lock and I have made a form with Contact Form 7. This is working but: First you have to fill in the form, click on send button and then the download button appears. I would like the send button of the form to start the download immediately so you won’t have to click another button. Is this possible?
Your answer: Not possible right now. But noted for implementation.
► My client doesn’t like that. Is it maybe possible with Gravity forms or will I have also 2 buttons?6 My question: Also I would expect the File cart to be empty after downloading, but it isn’t?
Your answer: Add the following code at line 123 in /wpdm-file-cart/tpls/file-cart-html.php to empty the cart after download.
localStorage.removeItem(‘file_cart_data’);
► This works only partially, cart is not empty until you go to another page. Apparently something has to refresh as well. Do you have a solution for that?
Bit of an odd one that I have never seen before – when updating v4.9.0 it deletes the whole plugin folder and downloads a new folder (called Prosper) with a theme in it!
You have created a custom template for wpdm-all-downloads.php which is the template file for all downloads shortcode. But the file is empty in /your-child-theme/download-manager/wpdm-all-downloads.php directory which basically removes all functionalities of all packages shortcode. Deleting this custom template should fix the issue.
Hi. I have just enabled the download archive and I am still not able to get it to show all products on the same page – https://ps-cardiagnostics.com/all-downloads/. Please help. Thanks
You have to customize wpdm-all-downloads.php template file to change the download button behavior. Create a custom template file for all downloads table to keep the changes even after the plugin update. Here is how you can do that,
1 ) Copy the /download-manager/tpls/wpdm-all-downloads.php file.
2 ) Place it in /active-theme/download-manager/ directory.
3 ) Replace echo $download_link; with echo "<a target='_blank' href='".\WPDM\Package::getDownloadURL($data['ID'])."'>Download</a>"; in line no 355
When I use [wpdm_category] it generates a login box (.w3eden div with a #wpdmlogin and a login form) in the header for every download on the page. It works fine while logged in, but visitors see the login boxes and it breaks styling on the page.
I’ve tried other shortcodes such as [wpdm_all_packages] for the same categories and these display fine, the issue only happens with [wpdm_category].
I need to use [wpdm_category] because I need the “AND” operator to display only downloads that fall within 2 categories.
All packages are Allow Access: All Visitors, I’ve even set each category to “All Visitors” and still can’t get the login box to go away.
Here is a short code that will show similar posts with thumbnails. Can you let me know what I have to update to include Downloads / All packages in the results too. Or if there is a better way to show similar downloads please let me know.
<?php $orig_post = $post;
global $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args=array(
‘tag__in’ ► $tag_ids,
‘post__not_in’ ► array($post->ID),
‘posts_per_page’►5, // Number of related posts that will be shown.
‘caller_get_posts’►1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
I’m trying to display all of the downloads available and also remove the “Display ## downloads per page” located at the top left and also remove “Previous 1 Next” at the bottom right of the page.
Category archive template is controlled by your theme. But you can partially control it from Downloads Settings Frontend Access Category Page Options. Chech the avilable option there.
Another option is using a custom taxonomy archive template in your theme. The file name is taxonomy-wpdmcategory.php and you have to place it in your active theme directory. Implementing this requires PHP coding experiences.
The code counts the number of packages and downloads correctly, but it sticks results to the top of the article, and not where the shortcode really is.
I also get “Updating failed” error every time I try saving the page. It seems the page actually does get saved though despite the error.
It generates this kind of HTML: <a class="wpdm-download-link btn btn-primary " rel="nofollow" href="#" onclick="location.href='https://mysite.com/?wpdmdl=5286&refresh=5c6d13a29aef41550652322';return false;"><span>Download</span></a>
In the <a> tag, I would like to add a data-url attribute that will contain the href to the file. How can I do that? How can I get only the url, not the full <a> tag ?
In fact, I need that because I want to create a “Download selected files” button, that will launch multiple downloads at once, depending on selected packages. (not all-in-one ZIP, but trigger each download separately). How would you do that?
Could you please check the PHP error log or send me the log file. It should indicate where the issue is. Downloads are actually logged as I see the count is increasing.
So, You are using the default category archive template provided by your theme to display downloads. If you want to modify the ordering in this case, you have to customize the category archive template of your theme.