Jump to content
cableguy1115

Disable new user account registration

Recommended Posts

Hello,

 

Is there a way to disable new customer registration, aswell disable guest buy? My clients are limited and I only want to create accounts myself for them. I've seen some posts from 1 year ago but I get "page not working" and stuff like that when I touch the .tpl's. I saw a module that does that, but I was wondering if Prestashop had an option to do it.

 

Thank you.

Share this post


Link to post
Share on other sites

To disable guest checkout:

 

Go to your back office > Shop Parameters > Order Settings > set "Enable guest checkout" to NO.

 

 

 

To disable all registrations:

 

Replace this file: 

/your-theme/checkout/_partials/steps/personal-information.tpl

 

(Download the attached ZIP and unzip first)

 

Replace this file as well:

/your-theme/customer/authentication.tpl

 

This is how your order will look: result.png (attached below)

personal-information.tpl.zip

authentication.tpl.zip

post-48475-0-68471400-1496808325_thumb.png

Edited by Andrej Stas
  • Like 4

Share this post


Link to post
Share on other sites

To disable guest checkout:

 

Go to your back office > Shop Parameters > Order Settings > set "Enable guest checkout" to NO.

 

 

 

To disable all registrations:

 

Replace this file: 

/your-theme/checkout/_partials/steps/personal-information.tpl

 

(Download the attached ZIP and unzip first)

 

Replace this file as well:

/your-theme/customer/authentication.tpl

 

This is how your order will look: result.png (attached below)

 

I Have do this but still I have registration link why?

Share this post


Link to post
Share on other sites
On 6/7/2017 at 7:02 AM, Andrej Stas said:

To disable guest checkout:

 

Go to your back office > Shop Parameters > Order Settings > set "Enable guest checkout" to NO.

 

 

 

To disable all registrations:

 

Replace this file: 

/your-theme/checkout/_partials/steps/personal-information.tpl

 

(Download the attached ZIP and unzip first)

 

Replace this file as well:

/your-theme/customer/authentication.tpl

 

This is how your order will look: result.png (attached below)

personal-information.tpl.zip

authentication.tpl.zip

post-48475-0-68471400-1496808325_thumb.png

 

Hello, for my store I whant to remove registration option too. 

I uploaded your authentication.tpl and personal-information.tpl, but still in order process there are sign in link and registration, is there something more to do? I use prestshop 1.7 last version.  THANK YOU !

Edited by lapseens
other error

Share this post


Link to post
Share on other sites
21 minutes ago, lapseens said:

 

Hello, for my store I whant to remove registration option too. 

I uploaded your authentication.tpl and personal-information.tpl, but still in order process there are sign in link and registration, is there something more to do? I use prestshop 1.7 last version.  THANK YOU !

 

you may find this solution useful

 

https://www.prestaheroes.com/en-us/modules/private-shop/private-shop-authorized-clients-only-shopping

Share this post


Link to post
Share on other sites

Sorry, You didnt understund me, I whant to remove customer registration from my prestshop page.

Im not a coder, so I need help. I removed some contents from personal-information.tpl, and remover from order page a login link, but how to remove all contents like - password, email etc. I will add sample picture :

 

THANK YOU, hope You can help me!

how-to.PNG

Share this post


Link to post
Share on other sites

I found the solution but i don't remember the name of the guy that write it ( i can't find the post)

Works fine in 1.7.X.X version

  •  
  • krupers
  • Members
  • 0
  • 1 post
  • Location:Warsaw

1.7.x has new method to do it:

 

INSIDE:
classes/Customer.php

 

there is entry (close to line 112-113):

    /** @var bool Status */
    public $active = true;

 

There is required only to replace "true" with statement "false" and by default all users are inactive.

Greetings,
Artur.

Edited by onthewey
  • Like 1

Share this post


Link to post
Share on other sites
On 11/29/2017 at 12:34 AM, lapseens said:

Sorry, You didnt understund me, I whant to remove customer registration from my prestshop page.

Im not a coder, so I need help. I removed some contents from personal-information.tpl, and remover from order page a login link, but how to remove all contents like - password, email etc. I will add sample picture :

 

THANK YOU, hope You can help me!

how-to.PNG

hi, did you find a way to resolve it? i want the same as you do but so far no luck

 

Thanks,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More