Hi,
Is there a shortcode for displaying the number of downloads left to the user or any of that information?
Home > Community > Forums > Free Downloads WooCommerce Pro
6th April 2021, 11:10 pm
Hi,
Is there a shortcode for displaying the number of downloads left to the user or any of that information?
Not for the downloads left. There is a shortcode for displaying the download limits with downloaded and downloads remaining, as shown on their account page. [download_limits]
Do you think this would be easy to implement in a small patch? Just the ability to use something like [downloads_left] and it displays a numerical value like 5. That way you can use the shortcode anyway you want and anywhere in text.
This would be SUPER USEFUL, especially when wanting to just display the number remaining in a header or middle of a sentence in a widget.
BUMP For direct integration.
Quick CSS for now that can work:
.somdn-account-download-limits-current:before {
content: "Redemption Limit For";
}
.somdn-account-download-limits-current:after {
content: "/20";
font-weight:bolder;
margin-left:-4px;
}
.somdn-account-download-limits-remain {
display:none;
}
Jasper Green said on 20 Apr 2021, 6:35 am:
BUMP For direct integration.
Quick CSS for now that can work:
.somdn-account-download-limits-current:before {
content: "Redemption Limit For";
}
.somdn-account-download-limits-current:after {
content: "/20";
font-weight:bolder;
margin-left:-4px;
}
.somdn-account-download-limits-remain {
display:none;
}
Thank you. Where do I put that css, however? In my template files or somewhere specific? And how would i use it somewhere specifically on the site? Is there a function/shortcode here im missing?
I used this plugin to add the CSS:
https://codecanyon.net/item/yellow-pencil-visual-css-style-editor/11322180
Of course you can just use Customize > CSS in WordPress or other methods.
Jasper Green said on 27 Apr 2021, 3:45 am:
I used this plugin to add the CSS:
https://codecanyon.net/item/yellow-pencil-visual-css-style-editor/11322180
Of course you can just use Customize > CSS in WordPress or other methods.
Sorry, if I worded my question wrong. I meant how do I use this solution after I add the custom CSS? Is there a short code I should be using where I want that text to appear or how do I make "Redemption Limit For Current Day" appear on the page?
*EDIT* Sorry, i didnt see it above.
Last modified: 10th May 2021, 6:55 am by Aethaerx
This topic is closed to new replies.
Looking for Square One Media? Check this post
@Noctroxis
11:10 pm