isdoo Posted September 21, 2018 Share Posted September 21, 2018 How can I prevent new accounts, yet allow existing accounts to register domains? I don't really want any new customers. Yet, I need existing customers the ability to register domains etc. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 21, 2018 Share Posted September 21, 2018 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)... <?php # Redirect Cart/Register Visitors Hook # Written by brian! function redirect_cart_vistors($vars) { $client = Menu::context("client"); if (!$client){ header("Location: clientarea.php"); exit; } } 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. Quote 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.