[Skip to main content](#vessel-content)

#   Problems of blocking user registration

##

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 9 months ago [\#34645](#34645) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  *[Problems of blocking user registration](/forum/3-bug-report/34645-problems-of-blocking-user-registration#34645 "The problem is in the view file checkout / login line 30:  if ($allowRegistration || $this-&gt;simplified&#95;registration == 2){  the correct code is:  if ($allowRegistration &amp;&amp; $this-&gt;simplified&#95;registration != 2){")* was created by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")*

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

if ($allowRegistration &#124;&#124; $this-&gt;simplified_registration == 2){

the correct code is:

if ($allowRegistration &amp;&amp; $this-&gt;simplified_registration != 2){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zNDY0NS1wcm9ibGVtcy1vZi1ibG9ja2luZy11c2VyLXJlZ2lzdHJhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

14 years 9 months ago [\#34683](#34683) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problems of blocking user registration](/forum/3-bug-report/34645-problems-of-blocking-user-registration#34683 "The problem is in the view file checkout / login line 30:  if ($allowRegistration || $this-&gt;simplified&#95;registration == 2){  the correct code is:  if ($allowRegistration &amp;&amp; $this-&gt;simplified&#95;registration != 2){")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zNDY0NS1wcm9ibGVtcy1vZi1ibG9ja2luZy11c2VyLXJlZ2lzdHJhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.123 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
