Post by wonderland » Wed Jun 15, 2011 9:35 pm

Hello,

I wanted to find out how to disable public user registration.

What I wan't to achieve:
Not everyone can register new account. I would like to create accounts myself or alternatively account can be created using link, something like shop.com/supersecretregistrationlink.php

I'm guessing that I should remove all "create an account" links in tpl files, but I'm not sure how to create working supersecret link or option to create accounts myself.

I'm using v1.5.0
Last edited by i2Paq on Thu Jun 16, 2011 2:23 am, edited 1 time in total.
Reason: Use [version] TAG in subject!

New member

Posts

Joined
Wed Jun 15, 2011 8:25 pm

Post by Xsecrets » Wed Jun 15, 2011 10:44 pm

you can create the accounts in the admin section.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by alessio85 » Thu Jul 07, 2011 8:03 pm

Hi! I'd like to disable the public registration too!

For my business I have to create new account by myself.

The question is: how can I do to disable new account creation?

Please, help us :D

Thanks in advanced! :D

Newbie

Posts

Joined
Thu Jul 07, 2011 7:55 pm

Post by wonderland » Wed Jul 13, 2011 11:24 pm

Hey,

It's not possible to disable user registration in admin panel, but you can "remove" all registration links.

For example:
To remove register in top right (welcome message) you must find header.tpl in catalog/common
and change

Code: Select all

$_['text_welcome']  = 'Welcome visitor you can <a href="%s">login</a> or <a href="%s">create an account</a>.';
to

Code: Select all

$_['text_welcome']  = 'Welcome visitor you can <a href="%s">login</a>.';
Ro remove possibility to register you should also remove

this code from catalog/view/theme/default/template/account/login.tpl

Code: Select all

    <div class="left">

      <h2><?php echo $text_new_customer; ?></h2>

      <div class="content">

        <p><b><?php echo $text_register; ?></b></p>

        <p><?php echo $text_register_account; ?></p>

        <a href="<?php echo $register; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>

    </div>
Ofcourse you should always make backups of you files in case something goes south, so you can easily replace them.

There may be other places that need to be removed to completley remove possibility for users to register.

Also this is what I woul've done, there probably are hundred better ways to do this.

New member

Posts

Joined
Wed Jun 15, 2011 8:25 pm
Who is online

Users browsing this forum: No registered users and 18 guests