User control panel change login module

  • Posts: 1055
  • Thank you received: 11
  • Hikashop Business
8 years 5 months ago #243816

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4

Hello!

i would like to replace the default joomla login module that shows up when a user goes to "User control panel" page without being logged in, with a 3d party login module. Is that possible?

Thank you

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243817

Hi,

There is no option in HikaShop for that.
What I would recommend is to create a small system plugin like we did with the Hikashop Registration Redirect Plugin. That way, you can redirect the Joomla login page to that 3rd party login page, regardless of where you're coming from. That's the cleanest way to do it.

Of course, you could also change the line:
$app->redirect(JRoute::_($url.'&return='.urlencode(base64_encode(hikashop_currentUrl('',false))),false));
in the file components/com_hikashop/controllers/user.php to redirect to that URL instead only for HikaShop, but I don't recommend it. For one thing, it's a hack of HikaShop, and second, it won't work for other extensions, or if your customer reach that login page directly.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.056 seconds
Powered by Kunena Forum