Jump to content


Photo

[SOLVED] Disable user register in prestashop 1.6

user register form disable

  • Please log in to reply
5 replies to this topic

#1 DEFTONES

DEFTONES

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 25 April 2014 - 09:24 PM

i use prestashop 1.6 with default template.

at the moment all of my customers have got an account in my shop created manually by me.

I don't want to allow them or anyone else to create new account.

is there in back office any setting / option which allows me to disable register form? if so, where it is? if not, how i can disable "register" feature ?



looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 hrbj

hrbj

    Member

  • Administrators
  • 64 posts

Posted 25 April 2014 - 10:50 PM

go to theme directory and open file named "authentication.tpl"

remove this code:
		<div class="col-xs-12 col-sm-6">
			<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box">
				<h3 class="page-subheading">{l s='Create an account'}</h3>
				<div class="form_content clearfix">
					<p>{l s='Please enter your email address to create an account.'}</p>
					<div class="alert alert-danger" id="create_account_error" style="display:none"></div>
					<div class="form-group">
						<label for="email_create">{l s='Email address'}</label>
						<input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" />
					</div>
					<div class="submit">
						{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
						<button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">
							<span>
								<i class="icon-user left"></i>
								{l s='Create an account'}
							</span>
						</button>
						<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />
					</div>
				</div>
			</form>
		</div>

voila :)



#3 DEFTONES

DEFTONES

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 25 April 2014 - 10:57 PM

thank you works like a charm :-))))



#4 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9341 posts

Posted 26 April 2014 - 12:04 AM

i marked this topic title as [solved] 

with regards,

Milos


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#5 goblin

goblin

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 26 July 2016 - 01:43 PM

 

go to theme directory and open file named "authentication.tpl"

remove this code:
		<div class="col-xs-12 col-sm-6">
			<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box">
				<h3 class="page-subheading">{l s='Create an account'}</h3>
				<div class="form_content clearfix">
					<p>{l s='Please enter your email address to create an account.'}</p>
					<div class="alert alert-danger" id="create_account_error" style="display:none"></div>
					<div class="form-group">
						<label for="email_create">{l s='Email address'}</label>
						<input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" />
					</div>
					<div class="submit">
						{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
						<button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">
							<span>
								<i class="icon-user left"></i>
								{l s='Create an account'}
							</span>
						</button>
						<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />
					</div>
				</div>
			</form>
		</div>

voila :)

 

 

I removed the code from .../ themes/default-bootstrap/authentication.tpl but still no succes :( The "Create An Account" form still appears . I use prestashop 1.6 with default-bootstrap version 1.0 Theme.... what can I do to remove that section . thanks

 

LE : SOLVED ! I forgot to clear cache-silly me .



#6 pranala

pranala

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 01 August 2017 - 12:56 AM

I got the code from this topic, thanks a lot.







IPB Skin By Virteq