using joomla login module in check-out login

  • Posts: 25
  • Thank you received: 1
10 years 5 days ago #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.

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

  • Posts: 83732
  • Thank you received: 13547
  • MODERATOR
10 years 5 days ago #200425

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.

  • Posts: 25
  • Thank you received: 1
9 years 11 months ago #201843

How to enable?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #201850

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.

  • Posts: 25
  • Thank you received: 1
9 years 11 months ago #202794

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.

  • Posts: 83732
  • Thank you received: 13547
  • MODERATOR
9 years 11 months ago #202830

Hi,

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

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:
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:
$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.071 seconds
Powered by Kunena Forum