Skip to main content

using joomla login module in check-out login

11 years 6 months ago #200420 by nabukadnezar
-- 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 or Create an account to join the conversation.

11 years 6 months ago #200425 by nicolas
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 or Create an account to join the conversation.

11 years 6 months ago #201843 by nabukadnezar
How to enable?

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

11 years 6 months ago #201850 by Mohamed Thelji
Hello,
To disable the Hikashop login setting you'll have to do it through the page "Hikashop->System->Configuration->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 or Create an account to join the conversation.

11 years 5 months ago #202794 by nabukadnezar
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 or Create an account to join the conversation.

11 years 5 months ago #202830 by nicolas
Hi,

You want to edit the file "quantity" of the view "product" via the menu Display>Views.
There, you'll find these lines:
Code:
echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params,$url, $this->ajax, '', $max, $min);
You can add a parameter like that to these lines to add a custom class:
Code:
echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params,$url, $this->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->guest){ // user is not logged in }
The following user(s) said Thank You: nabukadnezar

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

Time to create page: 0.067 seconds
Powered by Kunena Forum