How to disable customers to register?

1)
1.1) Remove the ‘Register’ link in the top right corner
1.2) Remove the ‘Create account for this Email’ checkbox on the cart.php?mode=checkout page.
1.3) The tool
https://help.x-cart.com/X-Cart:Using_Webmaster_mode
will help you to localize the templates

Index: include/register.php
index b95b9c35f2..9170d8bb29 100644
— include/register.php
+++ include/register.php
@@ -286,8 +286,7 @@ if (
* Check if user have permissions to update/create profile
*/
$allowed_registration = (

  • $usertype == ‘C’
  • || (
  • (
    $usertype == ‘B’
    && $config[‘XAffiliate’][‘partner_register’] == ‘Y’
    )