Hikashop 3 login

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #260447

Hi,

I am trying to get new checkout look same as old one.

I need to show login always and switcher with guest or registration.

I successfully show login form but issue is that it doesn't allow me to login and throws error messages like i would use guest or registration...

How can i remove tha check on login form or which line of code i should look?

I would like login to behive same as if using "all in one page settings" + switcher with registration and guest.

I was thinking to use module inside form but I hope there is a cleaner way and can be done with login_form it self.

Thanks

Last edit: 7 years 9 months ago by kyratn.

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

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
7 years 9 months ago #260460

Hi,

We submitted several patches yesterday in order to fix unwanted behaviors in the checkout/login.
But, if you click on the button "login", the login will be perform in ajax and there is no reported issue on that part ; it was working fine in our test websites.
Now the main question is mostly which version build number you're using and what action you are performing exactly (which button are you clicking, are you using the "enter" button ?) and have details about the context for your test (the corresponding configuration).

Are you talking about the same issue you mentioned in that thread ?
www.hikashop.com/forum/hikashop-3-0-beta...html?start=20#260402
If so, please try to not duplicate the errors so two people of the support team won't work on the same problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #260509

Hi,

Sorry, I think I wasn't clear enough with my question. Everything is working fine now. I am talking now about customization itself.

What I need is to have login form always visible on the left and on the right to have switcher "guest" and "registration". New system is different and I can't figure it out....

As example I have changed login form div id :

<div id="hikashop_checkout_login_form_NEW_ID">
				<h2><?php echo JText::_('HIKA_LOGIN'); ?></h2>
<?php
			$this->setLayout('sub_block_login_form');
			echo $this->loadTemplate();
?>
			</div>

and login form is always visible. However it won't let me to login and throws error message as I would be trying to do guest checkout.

So I am looking where and how I should modify code so that login would work.

Thanks

Last edit: 7 years 9 months ago by kyratn.

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
7 years 9 months ago #260512

Hi,

In switcher mode, the system looks at the variable with the key data[register][registration_method] in the $_POST when you submit the login view to determine if it is a login or a registration.
That comes from the radio of the switcher.
So you would have to input in JS the radio input to have "login" as value for that key in the $_POST when the customer tries to login and it will work.
The switcher PHP and JS code is all in the view file "show_block_login" so that's where you want to do your modifications for that.

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

  • Posts: 1119
  • Thank you received: 114
7 years 9 months ago #260633

Hi,

Thanks again. You just gave me a hint how to do what i need.

Kind Regards

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

Time to create page: 0.060 seconds
Powered by Kunena Forum