user / downloads.php download limit

  • Posts: 85
  • Thank you received: 10
  • Hikashop Business
1 year 1 month ago #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:
if($limit == -1 && $limitNotReached && $periodNotReached) {
Which should be changed to this
if($limit <= -1 && $limitNotReached && $periodNotReached) {

Attachments:
Last edit: 1 year 1 month ago by oxido.

Please Log in or Create an account to join the conversation.

  • Posts: 12206
  • Thank you received: 1684
  • MODERATOR
1 year 1 month ago #299201

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 or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum