Using a different Login Module

  • Posts: 128
  • Thank you received: 2
8 years 4 months ago #245951

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.6

Hi there,

I replaced the login module that shows on the checkout process by removing the code in the view checkout->login_form and inserting my own template position there.

foreach (JModuleHelper::getModules("login_module_checkout") as $module) {                                
							echo JModuleHelper::renderModule($module);            
					}

I put login step as a standalone step, with no other checkout components like cart, or fields, etc

Then I assign my login module to this template position and it seems to work fine. After the user introduces it credentials then the checkout process continues normally and progresses to the next step.

My question is, even though it seems to work fine, am I breaking any Hikashop functionality or may I have other problems I am not able to see now?

The reason I do this is because with the community builder login form the user can log in via user ID or email address ( you should implement this in Hikashop since the user not always remembers the user id and the email address is easier to remember).

Many thanks

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #245958

Hi,

It is already possible to use the username or the email address for the login with HikaShop (and joomla). Just install a plugin like that:
extensions.joomla.org/extension/email-as-username
extensions.joomla.org/extension/awo-email-login

I wouldn't recommend the solution you used. The whole checkout of HikaShop is inside its own form element so if you put another login module (which has its own form), you'll have a form in a form and that's invalid in HTML documents. You're lucky that it works for you.

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

Time to create page: 0.053 seconds
Powered by Kunena Forum