Hallo!
Ein Kunde hätte gerne die Reihenfolge auf der /account Seite geändert, also die Anmeldung für bestehende Kunden über der Registrierung neuer Kunden.
Ich habe nun den Tipps von
Hallo,
ich würde gerne die Reihenfolge bei der Anmeldung/Registrierung ändern.
Standard: Oben ist der Abschnitt "Ich bin Neukunde, unten ist der Abschnitt „Ich bin bereits Kunde“
Ich würde es gerne umgekehrt haben. Der Abschnitt „Ich bin bereits Kunde“ sollte also oben sein, und „Ich bin Neukunde“ unten.
Ich habe versucht in der frontend/register/index.tpl den Abschnitt
{* Register Login *}
{block name=‚frontend_register_index_login‘}
{include file=„frontend/register/login.…
befolgt und in
/themes/Frontend/MeinTheme /frontend/register/
die Dateien
index.tpl
login.tpl
bearbeitet.
Nach dem Ändern der Dateien (und Cache löschen/Theme neu kompilieren) ist auf der /account Seite nun die Anmeldung für bestehende Kunden überhaupt nicht mehr vorhanden.
Ich habe auch testweise die Änderungen direkt und ausschließlich im Bare Theme durchgeführt, aber auch dort verschwindet die Anmeldung für bestehende Kunden.
Was mache ich falsch?
Liebe Grüße
Vermutlich hast du was gelöscht, was du hättest nicht löschen sollen. Was genau hast du denn geändert? Im anderen Beitrag steht keine Anleitung.
Ich habe in der /frontend/register/index.tpl
den Block
{* Register Login *}
{block name=‚frontend_register_index_login‘}
{include file=„frontend/register/login.tpl“}
{/block}
über den Block für bestehende Kunden geschoben. Ich habe nichts gelöscht.
Hallo,
das ist mein Code in der login.tpl:
{namespace name="frontend/account/login"}
<div class="register--login content block">
{* Error messages *}
{block name='frontend_register_login_error_messages'}
{if $sErrorMessages}
<div class="account--error">
{include file="frontend/register/error_message.tpl" error_messages=$sErrorMessages}
</div>
{/if}
{/block}
{* Existing customer *}
{block name='frontend_register_login_customer'}
<div class="register--existing-customer panel has--border is--rounded">
{block name='frontend_register_login_customer_title'}
<h2 class="panel--title is--underline">{s name="LoginHeaderExistingCustomer"}{/s}</h2>
{/block}
<div class="panel--body is--wide">
{block name='frontend_register_login_form'}
{if $register.personal.sValidation}
{$url = {url controller=account action=login sTarget=$sTarget sTargetAction=$sTargetAction sValidation=$register.personal.sValidation} }
{else}
{$url = {url controller=account action=login sTarget=$sTarget sTargetAction=$sTargetAction} }
{/if}
<form name="sLogin" method="post" action="{$url}" id="login--form">
{block name='frontend_register_login_form_additional_inputs'}
{if $sTarget}<input name="sTarget" type="hidden" value="{$sTarget|escape}" />{/if}
{if $showNoAccount}<input name="showNoAccount" type="hidden" value="true" />{/if}
{/block}
{block name='frontend_register_login_description'}
<div class="register--login-description">{s name="LoginHeaderFields"}{/s}</div>
{/block}
{block name='frontend_register_login_input_email'}
<div class="register--login-email">
<input name="email" placeholder="{s name="LoginPlaceholderMail"}{/s}" type="email" autocomplete="email" tabindex="1" value="{$sFormData.email|escape}" id="email" class="register--login-field{if $sErrorFlag.email} has--error{/if}" />
</div>
{/block}
{block name='frontend_register_login_input_password'}
<div class="register--login-password">
<input name="password" placeholder="{s name="LoginPlaceholderPassword"}{/s}" type="password" autocomplete="current-password" tabindex="2" id="passwort" class="register--login-field{if $sErrorFlag.password} has--error{/if}" />
</div>
{/block}
{block name='frontend_register_login_input_lostpassword'}
<div class="register--login-lostpassword">
<a href="{url controller=account action=password}" title="{"{s name="LoginLinkLostPassword"}{/s}"|escape}">
{s name="LoginLinkLostPassword"}{/s}
</a>
</div>
{/block}
{block name='frontend_register_login_input_form_submit'}
<div class="register--login-action">
<button type="submit" class="register--login-btn btn is--primary is--large is--icon-right" name="Submit">{s name="LoginLinkLogon"}{/s} <i class="icon--arrow-right"></i></button>
</div>
{/block}
</form>
{/block}
</div>
</div>
{/block}
{* New customer *}
{block name='frontend_register_login_newcustomer'}
<div class="register--new-customer">
<a href="#registration"
class="new-customer-btn btn is--icon-right"
id="new-customer-action"
data-collapseTarget="#registration">
{s name="LoginLinkRegister2"}{/s}
</a>
</div>
{/block}
</div>
Und das hier ist mein Code aus der index.tpl
{extends file="frontend/index/index.tpl"}
{block name="frontend_index_header"}
{$toAccount = ($sTarget == "account" || $sTarget == "address")}
{$smarty.block.parent}
{/block}
{* Title *}
{block name='frontend_index_header_title'}
{s name="RegisterTitle"}{/s} | {{config name=shopName}|escapeHtml}
{/block}
{* Back to the shop button *}
{block name='frontend_index_logo_trusted_shops'}
{$smarty.block.parent}
{block name='frontend_register_index_back_to_shop_button'}
{if $theme.checkoutHeader && !$toAccount}
<a href="{url controller='index'}"
class="btn is--small btn--back-top-shop is--icon-left"
title="{"{s name='FinishButtonBackToShop' namespace='frontend/checkout/finish'}{/s}"|escape}">
<i class="icon--arrow-left"></i>
{s name="FinishButtonBackToShop" namespace="frontend/checkout/finish"}{/s}
</a>
{/if}
{/block}
{/block}
{* Hide breadcrumb *}
{block name='frontend_index_breadcrumb'}
{if $toAccount}
{$smarty.block.parent}
{/if}
{/block}
{* Hide shop navigation *}
{block name='frontend_index_shop_navigation'}
{if !$theme.checkoutHeader || $toAccount}
{$smarty.block.parent}
{/if}
{/block}
{* Step box *}
{block name='frontend_index_navigation_categories_top'}
{if $toAccount}
{$smarty.block.parent}
{else}
{if !$theme.checkoutHeader}
{$smarty.block.parent}
{/if}
{include file="frontend/register/steps.tpl" sStepActive="address"}
{/if}
{/block}
{* Hide top bar *}
{block name='frontend_index_top_bar_container'}
{if !$theme.checkoutHeader || $toAccount}
{$smarty.block.parent}
{/if}
{/block}
{block name="frontend_index_logo_supportinfo"}
{if !$toAccount}
{$smarty.block.parent}
{/if}
{/block}
{* Sidebar left *}
{block name='frontend_index_content_left'}
{include file='frontend/index/sidebar.tpl'}
{/block}
{* Footer *}
{block name="frontend_index_footer"}
{if !$theme.checkoutFooter || $toAccount}
{$smarty.block.parent}
{else}
{block name="frontend_index_register_footer"}
{include file="frontend/index/footer_minimal.tpl"}
{/block}
{/if}
{/block}
{* Register content *}
{block name='frontend_index_content'}
{* Register Login *}
{block name='frontend_register_index_login'}
{include file="frontend/register/login.tpl"}
{/block}
{block name='frontend_register_index_registration'}
<div class="register--content panel content block has--border is--rounded{if $errors.occurred} is--collapsed{/if}" id="registration" data-register="true">
{block name='frontend_register_index_dealer_register'}
{* Included for compatibility reasons *}
{/block}
{block name='frontend_register_index_cgroup_header'}
{if $register.personal.sValidation}
{* Include information related to registration for other customergroups then guest, this block get overridden by b2b essentials plugin *}
<div class="panel register--supplier">
{block name='frontend_register_index_cgroup_header_title'}
<h2 class="panel--title is--underline">{$sShopname|escapeHtml} {s name='RegisterHeadlineSupplier' namespace='frontend/register/index'}{/s}</h2>
{/block}
{block name='frontend_register_index_cgroup_header_body'}
<div class="panel--body is--wide">
<p class="is--bold">{s name='RegisterInfoSupplier3' namespace='frontend/register/index'}{/s}</p>
<h3 class="is--bold">{s name='RegisterInfoSupplier4' namespace='frontend/register/index'}{/s}</h3>
<p>{s name='RegisterInfoSupplier5' namespace='frontend/register/index'}{/s}</p>
<h3 class="is--bold">{s name='RegisterInfoSupplier6' namespace='frontend/register/index'}{/s}</h3>
<p>{s name='RegisterInfoSupplier7' namespace='frontend/register/index'}{/s}</p>
</div>
{/block}
</div>
{/if}
{/block}
{block name='frontend_register_index_form'}
<form method="post" action="{url action=saveRegister sTarget=$sTarget sTargetAction=$sTargetAction}" class="panel register--form" id="register--form">
{* Successful optin verification *}
{block name='frontend_register_index_form_optin_success'}
{if $smarty.get.optinsuccess && ({config name=optinregister} || {config name=optinaccountless})}
{if $isAccountless}
{include file="frontend/_includes/messages.tpl" type="success" content="{s name="RegisterInfoSuccessOptinAccountless"}{/s}"}
{else}
{include file="frontend/_includes/messages.tpl" type="success" content="{s name="RegisterInfoSuccessOptin"}{/s}"}
{/if}
{/if}
{/block}
{* Invalid hash while option verification process *}
{block name='frontend_register_index_form_optin_invalid_hash'}
{if $smarty.get.optinhashinvalid && ({config name=optinregister} || {config name=optinaccountless})}
{include file="frontend/_includes/messages.tpl" type="error" content="{s name="RegisterInfoInvalidHash"}{/s}"}
{/if}
{/block}
{block name='frontend_register_index_form_captcha_fieldset'}
{include file="frontend/register/error_message.tpl" error_messages=$errors.captcha}
{/block}
{block name='frontend_register_index_form_personal_fieldset'}
{include file="frontend/register/error_message.tpl" error_messages=$errors.personal}
{include file="frontend/register/personal_fieldset.tpl" form_data=$register.personal error_flags=$errors.personal}
{/block}
{block name='frontend_register_index_form_billing_fieldset'}
{include file="frontend/register/error_message.tpl" error_messages=$errors.billing}
{include file="frontend/register/billing_fieldset.tpl" form_data=$register.billing error_flags=$errors.billing country_list=$countryList}
{/block}
{block name='frontend_register_index_form_shipping_fieldset'}
{include file="frontend/register/error_message.tpl" error_messages=$errors.shipping}
{include file="frontend/register/shipping_fieldset.tpl" form_data=$register.shipping error_flags=$errors.shipping country_list=$countryList}
{/block}
{* @deprecated Block will be excluded in 5.7 *}
{* It has been replaced by "frontend_register_index_form_privacy" below *}
{if !$update}
{block name='frontend_register_index_input_privacy'}{/block}
{/if}
{block name='frontend_register_index_form_required'}
{* Required fields hint *}
<div class="register--required-info required_fields">
{s name='RegisterPersonalRequiredText' namespace='frontend/register/personal_fieldset'}{/s}
</div>
{/block}
{* Captcha *}
{block name='frontend_register_index_form_captcha'}
{$captchaName = {config name=registerCaptcha}}
{$captchaHasError = $errors.captcha}
{include file="widgets/captcha/custom_captcha.tpl" captchaName=$captchaName captchaHasError=$captchaHasError}
{/block}
{* Data protection information *}
{if !$update}
{block name="frontend_register_index_form_privacy"}
{if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}}
{block name="frontend_register_index_form_privacy_title"}
<h2 class="panel--title is--underline">
{s name="PrivacyTitle" namespace="frontend/index/privacy"}{/s}
</h2>
{/block}
<div class="panel--body is--wide">
{block name="frontend_register_index_form_privacy_content"}
<div class="register--password-description">
{if {config name=ACTDPRCHECK}}
{* Privacy checkbox *}
{block name="frontend_register_index_form_privacy_content_checkbox"}
<input name="register[personal][dpacheckbox]" type="checkbox" id="dpacheckbox"{if $form_data.dpacheckbox} checked="checked"{/if} required="required" aria-required="true" value="1" class="is--required" />
<label for="dpacheckbox">
{s name="PrivacyText" namespace="frontend/index/privacy"}{/s}
</label>
{/block}
{else}
{block name="frontend_register_index_form_privacy_content_text"}
{s name="PrivacyText" namespace="frontend/index/privacy"}{/s}
{/block}
{/if}
</div>
{/block}
</div>
{/if}
{/block}
{/if}
{block name='frontend_register_index_form_submit'}
{* Submit button *}
<div class="register--action">
<button type="submit" class="register--submit btn is--primary is--large is--icon-right" name="Submit">{s name="RegisterIndexNewActionSubmit"}{/s} <i class="icon--arrow-right"></i></button>
</div>
{/block}
</form>
{/block}
</div>
{/block}
{* Register advantages *}
{block name='frontend_register_index_advantages'}
<div class="register--advantages block">
{block name='frontend_register_index_advantages_title'}
<h2 class="panel--title">{s name='RegisterInfoAdvantagesTitle'}{/s}</h2>
{/block}
{block name='frontend_index_content_advantages_list'}
<ul class="list--unordered is--checked register--advantages-list">
{block name='frontend_index_content_advantages_entry1'}
<li class="register--advantages-entry">
{s name='RegisterInfoAdvantagesEntry1'}{/s}
</li>
{/block}
{block name='frontend_index_content_advantages_entry2'}
<li class="register--advantages-entry">
{s name='RegisterInfoAdvantagesEntry2'}{/s}
</li>
{/block}
{block name='frontend_index_content_advantages_entry3'}
<li class="register--advantages-entry">
{s name='RegisterInfoAdvantagesEntry3'}{/s}
</li>
{/block}
{block name='frontend_index_content_advantages_entry4'}
<li class="register--advantages-entry">
{s name='RegisterInfoAdvantagesEntry4'}{/s}
</li>
{/block}
</ul>
{/block}
</div>
{/block}
{/block}
Hilft dir das weiter?
lg
Wilo
Hallo,
Es hat jetzt funktioniert. Die Erklärung ist mir fast peinlich. Ich habe den Existing Customer Block unabsichtlich innerhalb des Neuen Kunden-Blockes reinkopiert.
Danke für das Posten deiner Dateien, Wilondo, da konnte ich dann sehen, dass nach dem New Customer Block nicht noch ein {/block} steht, bei mir aber schon.
Liebe Grüße