Problems of blocking user registration

  • Posts: 25
  • Thank you received: 1
12 years 10 months ago #34645

The problem is in the view file checkout / login line 30:

if ($allowRegistration || $this->simplified_registration == 2){

the correct code is:

if ($allowRegistration && $this->simplified_registration != 2){

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34683

What our code says is:

"Display the registration form only if the registration in joomla is allowed or if the hikashop registration is in "guest mode""

What your code says is:

"Display the registration form only if the registration in joomla is allowed and if the hikashop registration is not in "guest mode""


When you set the "registration" option to "no registration" in the Checkout tab of the configuration it's actually to activate the guest checkout mode where a user doesn't have to register to the website to checkout. That's why the "registration" is still displayed but without the "username" and "password" fields.

So that code is correct.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum