Jump to content

Require User email approval on Registration


kaeo

Recommended Posts

I installed prestashop and have it all running great... But!

Is there a way to restrict users from being able to register unless they are approved by me first?
Is there a way to restrict purchases only to registered users?

Thanks again!
-Roy

Link to comment
Share on other sites

You could create another customer group called "Approved", then use my code here to display a message on the cart summary that only approved customers can check out. You could prevent unapproved customers checking out by changing lines 86-87 of order.php (in PrestaShop v1.3.5) from:

/* 4 steps to the order */
switch (intval($step))



to:

if ($trade)
  $step = 0;

/* 4 steps to the order */
switch (intval($step))



This should redirect unapproved customers to the cart summary if they attempt to check out.

Link to comment
Share on other sites

  • 2 months later...

Hi rocky,

Can you please direct me to where I should make similar changes in Prestashop version 1.4.

I would like to approve the users before they can access to view prices.

So I have a wholesale site which I only wish to make accessible for prices & product viewing to approved users.

thanks

Link to comment
Share on other sites

hi Angora,

Thanks for the reply and the helpful suggestions.

I will give that a try, however, I am still wondering if there is a way to have the site display in catalog mode(which doesnot show rices) and then when a user logs in they can view the prices based upon their group in this case while be wholesale.

Link to comment
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
×
×
  • Create New...