Jump to content

[resolved] How to deaktivate New Customer Registration


Recommended Posts

Hello comunity,

 

i´am new to Presta Shop System, and working on a B2B Shop.

but so far i didnt find any way deaktivate the New Customer Registration.

 

I want to add New Customer manually and send them their Login  Informaion via E-Mail.

 

Is there any way to hide the Customer Registration field, but leave the existing Customer field for login ?

 

thanks in advidce

Link to comment
Share on other sites

find this file

 

themes/yourtheme/authentication.tpl

 

save to a back up file

 

from a native default theme, find this form

	<form action="{$link->getPageLink('authentication', true)|escape:'html'}" method="post" id="create-account_form" class="std">
		<fieldset>
			<h3>{l s='Create an account'}</h3>
			<div class="form_content clearfix">
				<p class="title_block">{l s='Please enter your email address to create an account.'}</p>
				<div class="error" id="create_account_error" style="display:none"></div>
				<p class="text">
					<label for="email_create">{l s='Email address'}</label>
					<span><input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" class="account_input" /></span>
				</p>
				<p class="submit">
					{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
					<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Create an account'}" />
					<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />
				</p>
			</div>
		</fieldset>
	</form>

and either delete it or comment out with html comment sytel, <!--   ....    -->

like this:

<!--	<form action="{$link->getPageLink('authentication', true)|escape:'html'}" method="post" id="create-account_form" class="std">
		<fieldset>
			<h3>{l s='Create an account'}</h3>
			<div class="form_content clearfix">
				<p class="title_block">{l s='Please enter your email address to create an account.'}</p>
				<div class="error" id="create_account_error" style="display:none"></div>
				<p class="text">
					<label for="email_create">{l s='Email address'}</label>
					<span><input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" class="account_input" /></span>
				</p>
				<p class="submit">
					{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
					<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Create an account'}" />
					<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />
				</p>
			</div>
		</fieldset>
	</form>
-->

This on a native 1.5.6.1 with default theme results in:

 

11.29.2013-14.16.png
http://screencast.com/t/HeI5ZGwmbz

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I know that this isnt the correct post, but I look around the forum but I dont find any solution of my problem.

 

So if you can help me

 

I have 1.5.6.1 and I would like to receive an email notification when a new customer registers.

 

Can you help me?

 

Regards

Andrea

Link to comment
Share on other sites

×
×
  • Create New...