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

#   using joomla login module in check-out login

##

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

Less More

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

11 years 6 months ago [\#200420](#200420) by [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")  *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#200420 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")* was created by *[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37
-- Error-message(debug-mod must be tuned on) -- : -

Hi,
When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcxNy11c2luZy1qb29tbGEtbG9naW4tbW9kdWxlLWluLWNoZWNrLW91dC1sb2dpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86578
- Thank you received: 14321
-
-

11 years 6 months ago [\#200425](#200425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#200425 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")*

Hi,

Then, deactivate the "login" setting of the Checkout tab of the HikaShop configuration and instead enable your login module on the side of the checkout page.

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

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

Less More

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

11 years 6 months ago [\#201843](#201843) by [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")  Replied by *[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")* on topic *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#201843 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")*

How to enable?

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

11 years 6 months ago [\#201850](#201850) 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 *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#201850 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")*

Hello,
To disable the Hikashop login setting you'll have to do it through the page "Hikashop-&gt;System-&gt;Configuration-&gt;Checkout workflow"
To enable your own login module, you'll just have to make sure that your login module is displayed through the checkout workflow page.

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

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

Less More

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

11 years 5 months ago [\#202794](#202794) by [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")  Replied by *[nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")* on topic *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#202794 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")*

Hi,
Actually, I'am using a pop-up login so I can't place the login form in somewhere in checkout page.
What I want is;
When a user clicks to the "buy" button in product detail page, if the user is not logged in, the login pop-up should come. So I think I should know if the user is logged in or not and I should put a condition to call the login pop-up.
So my first question is: How can I know the user is logged in or not.
second: In which file the "buy" button ? (I need to change "buy" button's class according to user's status)

Thank you very much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcxNy11c2luZy1qb29tbGEtbG9naW4tbW9kdWxlLWluLWNoZWNrLW91dC1sb2dpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86578
- Thank you received: 14321
-
-

11 years 5 months ago [\#202830](#202830) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[using joomla login module in check-out login](/forum/27-checkout/876717-using-joomla-login-module-in-check-out-login#202830 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.37 -- Error-message(debug-mod must be tuned on) -- : -  Hi, When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.")*

Hi,

You want to edit the file "quantity" of the view "product" via the menu Display&gt;Views.
There, you'll find these lines: Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'), 'add', $this-&gt;params,$url, $this-&gt;ajax, '', $max, $min);

You can add a parameter like that to these lines to add a custom class: Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'), 'add', $this-&gt;params,$url, $this-&gt;ajax, '', $max, $min,' custom_css_class');

where custom_css_class is your custom CSS class.

To know if a user is logged in or not, you can use such code: Code:

$user = JFactory::getUser(); if($user-&gt;guest){ // user is not logged in }

The following user(s) said Thank You: [nabukadnezar](/forum/user/36575-nabukadnezar "View nabukadnezar's Profile")

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

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