1 Attachment(s)
Remove Registration Completely?
I was able to remove the registration form from the login page by editing includes/templates/template_default/templates/tpl_modules_create_account.php but now it shows this new box that says "New? Please Provide Your Billing Information" (see attached screenshot)
How can I remove this?
Re: Remove Registration Completely
The short answer is "you can't".
You may be able to disable text from showing, but you need to provide some information when logging in - and Zen Cart is not currently set up to allow purchases without creating a customer account.
What exactly is your overall goal in the changes you are trying to do?
P.S. - You should never change any files in /template_default/. You should copy the file to a custom template folder (/your_template/, or whatever you want to name it) and edit it there.
Re: Remove Registration Completely
I'm trying to make it so that only the admin can register new users (I got a mod for the admin panel to do this)
I want users to be able to login and out but I don't want people to be able to register (the admin would do this for them)
Re: Remove Registration Completely
Quote:
Originally Posted by
ETbyrne
I'm trying to make it so that only the admin can register new users (I got a mod for the admin panel to do this)
I want users to be able to login and out but I don't want people to be able to register (the admin would do this for them)
So why not change the text and tell people in that box that they can only be added if they send you an email first?
Re: Remove Registration Completely
There are some settings in the admin which may help you:
admin>configuration>my store>store status
What is your Store Status
0= Normal Store
1= Showcase no prices
2= Showcase with prices
admin>configuration>customer details>customer shop status
Customer must be approved to shop
0= Not required
1= Must login to browse
2= May browse but no prices unless logged in
3= Showroom Only
admin>configuration>customer details>Customer Approval Status
Customer must be Authorized to shop
0= Not required
1= Must be Authorized to Browse
2= May browse but no prices unless Authorized
3= Customer May Browse and May see Prices but Must be Authorized to Buy
Re: Remove Registration Completely
Hi,
I am also trying to remove the registration form. The reason is that my business will be selling to local authority organisations and not to individuals.
Creating customer accounts through the SQL database is simple but I need to remove or hide the form below the returning customers login box.
Can the form below this area be amended and if so where ?
Thanks
Alan
Re: Remove Registration Completely
Hi again,
Just noted the file in the earlier post
tpl_modules_create_account.php
But the writer shows a new box appeared after this was modified. Can this new message box be disabled or modified.
Thanks
Alan
Re: Remove Registration Completely?
For Posterity, and to close up one of the thousands of abandoned Zen Cart posts (I arrived here attempting the same from Google):
There are any number of reasons why you wouldn't want users to register. Google Checkout Mod for instance registers people for you...if you're only offering GC then why would you want to allow registration? Likewise, if you're registering people yourself as the OP was...
Anyway, OP was off in their method, to prohibit the Registration option (tpl_modules_create_accout.php) from showing at all,
1. make a backup of your tpl_login_default.php
2. delete the follwing from tpl_login_default.php:
Code:
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
</form>
3. re-up the file.
this way you're removing the entire call to FILENAME_CREATE_ACCOUNT, the 'box' and all.
Easy Peasy. Tested and working on 1.3.9h
Re: Remove Registration Completely?
An update to this thread for those looking to disable the registration form in Zen Cart but still have the customer login form available.
Another way to turn off the registration form but still have the login for returning customers is to use CSS. I found the div called #createAccountForm and in the CSS set this to display:none. It worked! There is no form and no box to allow registration, only the login form.
Sample code:
div#createAccountForm {
display:none;
}
Hope this helps!
Re: Remove Registration Completely?
I have tried this css code but cant really find this in my css stylesheet . And it doesnot works .. i really need to disable customer registration form