[Skip to main content](#vessel-content)

#   user / downloads.php download limit

##

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

8 years 1 month ago -  8 years 1 month ago [\#299198](#299198) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[user / downloads.php download limit](/forum/3-bug-report/895978-user-downloads-php-download-limit#299198 "-- HikaShop version -- : 4 -- Joomla version -- : 3.8.13  Hi, If download limit is set to -1 in backend, the user it will see this in download section: -4 downloads left (-4 is what i see now, if i downloa one more it will be -5, -6 and so on)  Instead of this: unlimited  To fix this, if look in to user / downloads.php view, on line 189, there is this line of code:  Which should be changed to this")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4
-- Joomla version -- : 3.8.13

Hi,
If download limit is set to -1 in backend, the user it will see this in download section: -4 downloads left (-4 is what i see now, if i downloa one more it will be -5, -6 and so on)

####  Attachment 01.JPG not found

Instead of this: unlimited

####  Attachment 02.JPG not found

To fix this, if look in to user / downloads.php view, on line 189, there is this line of code: Code:

if($limit == -1 &amp;&amp; $limitNotReached &amp;&amp; $periodNotReached) {

Which should be changed to this Code:

if($limit &lt;= -1 &amp;&amp; $limitNotReached &amp;&amp; $periodNotReached) {

-
-

Last edit: 8 years 1 month ago by [oxido](/forum/user/29793-oxido "View oxido's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTU5NzgtdXNlci1kb3dubG9hZHMtcGhwLWRvd25sb2FkLWxpbWl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 4 weeks ago [\#299201](#299201) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[user / downloads.php download limit](/forum/3-bug-report/895978-user-downloads-php-download-limit#299201 "-- HikaShop version -- : 4 -- Joomla version -- : 3.8.13  Hi, If download limit is set to -1 in backend, the user it will see this in download section: -4 downloads left (-4 is what i see now, if i downloa one more it will be -5, -6 and so on)  Instead of this: unlimited  To fix this, if look in to user / downloads.php view, on line 189, there is this line of code:  Which should be changed to this")*

Hello,

Thank you for your feedback we'll test it on our end and probably add it through our next release !

Kind regards,
Mohamed Thelji.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTU5NzgtdXNlci1kb3dubG9hZHMtcGhwLWRvd25sb2FkLWxpbWl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
