Dobrý den,
pokud chcete zakázat registrace, tak je nutná úprava zdrojového kódu. Přihlašte se pomocí FTP klienta a přejděte do adresáře
themes/šablona/ a otevřete soubor
authentication.tpl. V souboru najděte řádky
Kód:
<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>
a ty nahraďte tímto kódem:
Kód:
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="create-account_form" class="std">
<fieldset>
{if $regenabled == 'true'}
<h3>{l s='Create your account'}</h3>
<h4>{l s='Enter your e-mail address to create an account'}.</h4>
<p class="text">
<label for="email_create">{l s='E-mail address'}</label>
<input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" />
</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 your account'}" />
<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create your account'}" />
</p>
{else}
<h3>{l s='Registrace je zakázána'}</h3>
{/if}
</fieldset>
</form>
.
Změnu uložte. Nyní se už nový zákazník nebude moci zaregistrovat, ale stávající zákazníci se budou moci přihlásit a provést objednávku.
Případně se můžete podívat na některá oficiální témata, kde se řešil stejný dotaz:
téma č. 1téma č. 2.