Jump to content

preventing new accounts?


Recommended Posts

31 minutes ago, isdoo said:

How can I prevent new accounts, yet allow existing accounts to register domains? 

i'm going to assume that you don't want potential new customers to make any orders at all - not just for domains..

first step, disable register.php from the admin settings -> setup > general settings -> other -> allow client registration

second step, perhaps use the hook below to redirect visitors from the cart and/or register, who are not logged in, to clientarea.php (or any other page)...


# Redirect Cart/Register Visitors Hook
# Written by brian!

function redirect_cart_vistors($vars)
	$client = Menu::context("client");
	if (!$client){
		header("Location: clientarea.php");
add_hook("ClientAreaPageCart", 1, "redirect_cart_vistors");
add_hook("ClientAreaPageRegister", 1, "redirect_cart_vistors");

possible third step, modify the navbar links to the store depending on if the client is logged in or not...

optional fourth step, modify using Language Overrides, the string shown on register.tpl when registration is disabled.


To create an account, please place an order with us

but if you're using the above hook, they should never see this page anyway.

and then test your site thoroughly to see if there is any obvious way to get to the cart/registration pages.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated