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

#   \[SOLVED\] Have CUSTOMER\_DOWNLOADLIST Show Login

##

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

12 years 9 months ago -  12 years 9 months ago [\#140054](#140054) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  *[\[SOLVED\] Have CUSTOMER\_DOWNLOADLIST Show Login](/forum/2-general-talk-about-hikashop/865071-solved-have-customer-downloadlist-show-login#140054 "-- url of the page with the problem -- :   www.classicalguitarhowto.com/order-download-list/user/downloads  -- HikaShop version -- : HikaShop Business: 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  If the User control panel is accessed by a guest, it will show a Login Form. if the Customer orders menu item is accessed by a guest, it will show a Login Form. BUT, if the CUSTOMER&#95;DOWNLOADLIST menu item is accessed by a guest it will only show the words: &quot;Please login first&quot;  How can I get the HikaShop menu item &quot;CUSTOMER&#95;DOWNLOADLIST&quot; to show a login box if it is selected by a website GUEST?  Thank you.")* was created by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")*

-- url of the page with the problem -- : [ www.classicalguitarhowto.com/order-download-list/user/downloads](http://www.classicalguitarhowto.com/order-download-list/user/downloads)
-- HikaShop version -- : HikaShop Business: 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

If the **User control panel** is accessed by a guest, it will show a Login Form.
if the **Customer orders** menu item is accessed by a guest, it will show a Login Form.
BUT, if the **CUSTOMER\_DOWNLOADLIST** menu item is accessed by a guest it will only show the words: "Please login first"

How can I get the HikaShop menu item "**CUSTOMER\_DOWNLOADLIST**" to show a login box if it is selected by a website GUEST?

Thank you.

Last edit: 12 years 9 months ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTA3MS1zb2x2ZWQtaGF2ZS1jdXN0b21lci1kb3dubG9hZGxpc3Qtc2hvdy1sb2dpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

12 years 9 months ago [\#140130](#140130) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to Have CUSTOMER\_DOWNLOADLIST Show Login Form](/forum/2-general-talk-about-hikashop/865071-solved-have-customer-downloadlist-show-login#140130 "-- url of the page with the problem -- :   www.classicalguitarhowto.com/order-download-list/user/downloads  -- HikaShop version -- : HikaShop Business: 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  If the User control panel is accessed by a guest, it will show a Login Form. if the Customer orders menu item is accessed by a guest, it will show a Login Form. BUT, if the CUSTOMER&#95;DOWNLOADLIST menu item is accessed by a guest it will only show the words: &quot;Please login first&quot;  How can I get the HikaShop menu item &quot;CUSTOMER&#95;DOWNLOADLIST&quot; to show a login box if it is selected by a website GUEST?  Thank you.")*

Add the code: Code:

$user = JFactory::getUser(); if ($user-&gt;guest) { $app=JFactory::getApplication(); $app-&gt;enqueueMessage(JText::_('PLEASE_LOGIN_FIRST')); global $Itemid; $url = ''; if(!empty($Itemid)){ $url='&amp;Itemid='.$Itemid; } if(!HIKASHOP_J16){ $url = 'index.php?option=com_user&amp;view=login'.$url; }else{ $url = 'index.php?option=com_users&amp;view=login'.$url; } $app-&gt;redirect(JRoute::_($url.'&amp;return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false)); return false; }

before the code: Code:

JRequest::setVar( 'layout', 'downloads' ); return parent::display();

in the file components/com_hikashop/controllers/user.php

The following user(s) said Thank You: [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTA3MS1zb2x2ZWQtaGF2ZS1jdXN0b21lci1kb3dubG9hZGxpc3Qtc2hvdy1sb2dpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

12 years 9 months ago [\#140142](#140142) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[How to Have CUSTOMER\_DOWNLOADLIST Show Login Form](/forum/2-general-talk-about-hikashop/865071-solved-have-customer-downloadlist-show-login#140142 "-- url of the page with the problem -- :   www.classicalguitarhowto.com/order-download-list/user/downloads  -- HikaShop version -- : HikaShop Business: 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  If the User control panel is accessed by a guest, it will show a Login Form. if the Customer orders menu item is accessed by a guest, it will show a Login Form. BUT, if the CUSTOMER&#95;DOWNLOADLIST menu item is accessed by a guest it will only show the words: &quot;Please login first&quot;  How can I get the HikaShop menu item &quot;CUSTOMER&#95;DOWNLOADLIST&quot; to show a login box if it is selected by a website GUEST?  Thank you.")*

That worked perfectly!

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTA3MS1zb2x2ZWQtaGF2ZS1jdXN0b21lci1kb3dubG9hZGxpc3Qtc2hvdy1sb2dpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.057 seconds

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