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

#   Bug in Download view

##

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

8 years 8 months ago [\#289447](#289447) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  *[Bug in Download view](/forum/58-hikasubscription/894090-bug-in-download-view#289447 "Hi, menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.  To fix this I have removed line 64 in file /components/com&#95;hikaserial/controllers/subscription.php  Menu item should have link like index.php?option=com&#95;hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force &quot;layout&quot; get var to &quot;listings&quot; instead &quot;downloads&quot;")* was created by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")*

Hi,
menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.

To fix this I have removed line 64 in file /components/com_hikaserial/controllers/subscription.php Code:

hikaInput::get()-&gt;set('layout', 'listing');

Menu item should have link like index.php?option=com_hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force "layout" get var to "listings" instead "downloads"

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

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

8 years 8 months ago [\#289480](#289480) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Bug in Download view](/forum/58-hikasubscription/894090-bug-in-download-view#289480 "Hi, menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.  To fix this I have removed line 64 in file /components/com&#95;hikaserial/controllers/subscription.php  Menu item should have link like index.php?option=com&#95;hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force &quot;layout&quot; get var to &quot;listings&quot; instead &quot;downloads&quot;")*

ops, with this modification page works (good) but you can't download file (bad)

to works it require option=com_hikashop, but menu item is associated to com_hikaserial.

**So the problem is this**
Menu item "Hikaserial-&gt;Download listing" create a link like "index.php?option=com_hikaserial&amp;view=subscription&amp;layout=downloads" but the correct working link is "index.php?option=**com\_hikashop**&amp;view=subscription&amp;layout=downloads"

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

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

8 years 8 months ago -  8 years 8 months ago [\#289490](#289490) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Bug in Download view](/forum/58-hikasubscription/894090-bug-in-download-view#289490 "Hi, menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.  To fix this I have removed line 64 in file /components/com&#95;hikaserial/controllers/subscription.php  Menu item should have link like index.php?option=com&#95;hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force &quot;layout&quot; get var to &quot;listings&quot; instead &quot;downloads&quot;")*

Finally I found a good fix and I hope you can add it in the next release.

Changed line 64 file in /components/com_hikaserial/controllers/subscription.php from: Code:

hikaInput::get()-&gt;set('layout', 'listing');

to: Code:

if(!hikaInput::get()-&gt;get('layout')) hikaInput::get()-&gt;set('layout', 'listing');

Now assign "listing" to "layout" var only if it is empty, otherwise you will never see downloads page.

Changed line 47 in file /components/com_hikaserial/views/subscription/tmpl/downloads.php from: Code:

$url = hikaserial::completeLink($this-&gt;param_prefix.'subscription&amp;task=download......

to: Code:

$url = hikaserial::completeLink('shop.subscription&amp;task=download.....

Download controller works only when you use "com_hikashop" therefore "shop." prefix is always required

Last edit: 8 years 8 months ago by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289481](#289481) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Bug in Download view](/forum/58-hikasubscription/894090-bug-in-download-view#289481 "Hi, menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.  To fix this I have removed line 64 in file /components/com&#95;hikaserial/controllers/subscription.php  Menu item should have link like index.php?option=com&#95;hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force &quot;layout&quot; get var to &quot;listings&quot; instead &quot;downloads&quot;")*

Hello,

Unfortunately your patch will generate errors and won't really solve your issue.
If you want to fix it you will have to add that code in the controller : Code:

public function downloads() { $this-&gt;requireJoomlaAccount(); hikaInput::get()-&gt;set('layout', 'downloads'); return $this-&gt;display(); }

And it also require the same "download" function that you can find in the "shop_subscription" controller (with few modifications for the links and the class $rights variable).

Now ; when you post a message in our forum, please provide the details regarding your HikaShop &amp; HikaSerial version number.
We asked for these details in order to provide a good support and not having to ask that question for every new thread..
Thank you for your understanding.

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

8 years 8 months ago [\#289528](#289528) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Bug in Download view](/forum/58-hikasubscription/894090-bug-in-download-view#289528 "Hi, menu item of type Hikaserial-&gt;Download listing show Subscription instead Downloads, now the only way to see Downloads is from Hikashop Control Panel link.  To fix this I have removed line 64 in file /components/com&#95;hikaserial/controllers/subscription.php  Menu item should have link like index.php?option=com&#95;hikaserial&amp;view=subscription&amp;layout=downloads but this code seems to force &quot;layout&quot; get var to &quot;listings&quot; instead &quot;downloads&quot;")*

Thanks, it works perfectly ![:D](/media/kunena/emoticons/1.png ":D")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vODk0MDkwLWJ1Zy1pbi1kb3dubG9hZC12aWV3P3RtcGw9bWFya2Rvd24=) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.052 seconds

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