Thank you for your answer, but it is not working.
I want to put a link to the shortcode “[wpdm_frontend]” and I put the code below to the function.php of the theme.
The result you can show on the image attached.
So the wpdm_frontend is opening in a frame of the dashboard, but I can not run the correct link if I click to the second time to “Add new”.
Can you help me to connect the “add new” button to the first button?
Best regards
Fatmir
// Use this filter to add menu items with author dashboard or remove any menu item from author dashboard
add_filter(‘wpdm_user_dashboard_menu’,’my_custom_dashboard_menus’,10,1);
// $menu_items is an array containing current menu items
function my_custom_dashboard_menus($menu_items){
// Removing edit profile menu
unset($menu_items[‘edit-profile’]);
unset($menu_items[‘subscription-plan’]);
unset($menu_items[‘subscription-download-area’]);
unset($menu_items[‘subscription-download-area’]);
//Adding new menu item using callback function
//$menu_items[‘new-menu-id’] = array(‘name’► __(‘Menu Title’,’text-domain’), ‘callback’ ► ‘CallbackFunction’);
//Adding new menu item using short-code
$menu_items[‘new-menu-id’] = array(‘name’► __(‘Add NEW’,’text-domain’), ‘shortcode’ ► ‘[wpdm_frontend]‘);
return $menu_items;
}
You can use this add-on https://www.wpdownloadmanager.com/download/lazy-download-add-on/ to redirect the user to a predefined page when they click on download link and start download from the page.
This reply has been marked as private.
Please try the following method,
1 ) Clone the Single Column with Doc Preview template from Downloads Templates Page Templates.
2 ) Find [download_link_extended]
and replace it with <a target="_blank" href="[download_url]">[link_label]</a>
3 ) Set this new template in package settings.
Use a link template that shows the download button. You can try Call To Action 3. Actually, all link template has the download button not sure which one you are using. You can send me the shortcode page link to check.
Please use TinyMCE add-on ( http://wpdownloadmanager.com/download/advanced-tinymce-button/ ) to insert shortcode easily.
You could solve that one easy – did that just today – just use a template and change it a little bit: check out which template you’re using (or select one via shortcode). On the template page, create a copy of that template and edit it. I use “link-template-widget” which has the exact thing you describe: I click on the link and it redirects to the details page, but I want a direct download.
To change that, just change every [page_url] in the code to an [download_url] and save.
Then use the new shortcode for the copied template to use it. And tadaaa: you have a direct download again 🙂
Have fun
I use to have WPDM FREE version, so i use to add file – go to all file – copy short code – add it into my page – the download is displayed in a nice way and when users click it – the download start directly .
Moved to pro version, doing the same steps as before but when my users click the link their are being redireted to another page in order to start the download.
Need to stop that and make it easy like the free version, the download should start directly.
Thanks in advance for your help.
For a PDF package in which I have no Link Template and the Page Template is Single Column with Doc Preview, when the Download link is clicked, is there a way to have the rendered preview appear in a new window?
I use to have WPDM FREE version, so i use to add file – go to all file – copy short code – add it into my page – the download is displayed in a nice way and when users click it – the download start directly .
Moved to pro version, doing the same steps as before but when my users click the link their are being redireted to another page in order to start the download.
Need to stop that and make it easy like the free version, the download should start directly.
Thanks in advance for your help.
This reply has been marked as private.
Setting up guest order page is pretty simple. Create a page and place this shortcode there [wpdmpp_guest_orders]
To add this guest order page URL in your purchase confirmation email you have to edit the purchase-confirmation
template from Downloads Templates Email Template page. Replace the [#order_url#]
with the guest order page link and that’s it.
You can hide the download count using a custom page template. Just clone ( Downloads Templates Page Templates ) the current page template you are using now. And remove the [download_count]
tag from there and save the template.
Now you can set this as you page template from package settings. If you need more info in custom templates please check the following links,
Creating a new template
Building a WordPress Download Manager Link Template from Scratch
Thanks Eftekher, that is not the email I was meaning. There is no problem with the Paypal transaction – it gets charged and both me and the customer get notified by Paypal.
However customers are telling me that they are not able to access the URL to download the file they just paid for. At first I thought they were not receiving the email with the link but I have just found out that they are. The problem is that my guest purchases page was not set up properly so the customers are unable to access the download link or register. For now I have turned off guest checkout and guest download.
Is there a document that explains how to set up the guest purchases page?
Hello,
I don’t want to show the download count on my post but I can’t find the option to remove it. I’m talking about the page that shows on links like these: http://www.mydomain.com/download/filetodownload
I don’t want to visitors to see how many times it’s been downloaded.
Hi,
Please add this in your shortcode: cols="page_link,file_count,download_count|categories|update_date|download_link"
Example:
[wpdm-all-packages items_per_page="10" cols="page_link,file_count,download_count|categories|update_date|download_link" categories="product-rubber-black" jstable=1 order="ASC"]
Thank you.
Hello,
Now that the Polylang plugin is disabled, the table is displaying fine by using the following shortcode:
[wpdm-all-packages items_per_page=”10″ categories=”product-rubber-black” jstable=1 order=”ASC”]
But, earlier each item in the table was hyperlinked to the individual download page. Which means each item could be clicked to open a download page for that particular package/item. But now the hyperlinks are gone. The individual package/item pages can not be accessed.
Please refer to the attached image.
Thanks.
Hi,
To get messages via paypal, you need to enable IPN.
To set IPN please follow this link:
How to enable IPN
Thank you
Hi,
1. Please update your Download Manager plugin. Then go to Downloads>Settings>Frontend
and select login and registration page. (Screenshot: https://prnt.sc/jud9cg )
2. You can use W3 Total Cache plugin. Link: https://wordpress.org/plugins/w3-total-cache/
3. You can renew the license by clicking “Renew Now” button from your orders.
(Screenshot: https://prnt.sc/jud751 )
4. Please update your Download Manager plugin.
Thank you.
Hi,
This is a php code, you should implement the code in a php file where you are performing your Download now option.
You cannot use this code in a javascript code .
If you are using download link of Download Manager you don’t have to implement it separately , Download Manager by default implements it.
Thank you.
Thanks! I am try to use the code in page template, but it’s not work.
Where is wrong?
<a href="[acf field='official-link']" class="btn btn-info btn-lg" onclick="wpdm_custom_url_click()">Download Now</a>
<script>
function wpdm_custom_url_click(){
$Download_count = get_post_meta([ID], '__wpdm_download_count',true);
update_post_meta([ID],'__wpdm_download_count', $Download_count+1 );
}
</script>
Hi there, I’ve set up some paid downloads on my site using Paypal. When I do a test purchase using Test Pay, I receive an email with the subject “Thanks for your purchase”. This directs me to the URL with the download link. But when I get orders via Paypal, the customer is not receiving this email and I am not receiving a copy of this email. What am I doing wrong?
I’m trying to configure the role based restriction to certain files.
I want to make all files visible to registered users, and certain files to a specific role.
I can’t even restrict the visibility to registered users only. Take a look on my first attachment.
If I click the download link, I can get the file, even if I’m not authenticated. I put the download link in my page with his shortcode – [wpdm_package id='1443'].
Take a look at my second attachment to see how the package is configured.
Expected behavior is: click on download should download the attachment for authenticated users; non-authenticated users should be redirected to login page.
How can I do this?
Wait for an aswer (quick if it’s possible).
TIA
Gianluca
This reply has been marked as private.
Please add the following code to your theme’s functions.php file and use [wpdm_download_tags cols="4" icon="tag" btnstyle="default"]
shortcode to show the custom download tag created by the code I posted above.
add_shortcode( 'wpdm_download_tags', 'wpdm_download_tags');
function wpdm_download_tags($params = array()){
global $wpdb;
@extract($params);
$parent = isset($parent)?$parent:0;
$args = array(
'orderby' ► 'name',
'order' ► 'ASC',
'hide_empty' ► false,
'exclude' ► array(),
'exclude_tree' ► array(),
'include' ► array(),
'number' ► '',
'fields' ► 'all',
'slug' ► '',
'parent' ► $parent,
'hierarchical' ► true,
'child_of' ► 0,
'get' ► '',
'name__like' ► '',
'pad_counts' ► false,
'offset' ► '',
'search' ► '',
'cache_domain' ► 'core'
);
$categories = get_terms('download-tag',$args);
$pluginsurl = plugins_url();
$cols = isset($cols)&&$cols>0?$cols:2;
$scols = intval(12/$cols);
$icon = isset($icon)?"":"";
$btnstyle = isset($btnstyle)?$btnstyle:'success';
$k = 0;
$html = "";
foreach($categories as $id►$category){
$catlink = get_term_link($category);
if($category->parent==$parent) {
$ccount = $category->count;
if(isset($showcount)&&$showcount) $count = " ($ccount)";
$html .= "";
$k++;
}
}
$html .= "
";
if($k==0) $html = '';
return "".str_replace(array("\r","\n"),"",$html)."
";
}