Jump to content
xt:Commerce Community Forum

Login Box


sevenfour

Recommended Posts

mit Update auf aktuelle version 4.0.13 funktioniert einiges an de Loginbox nicht mehr so wie is ein der 12er version war.

der Kundenname wird nicht mehr angzeigt, wenn man eingeloggt ist. Auch andere Daten. Wenn ich aber das script aus der loginbox direkt in die Index.html einfüge, erscheint wenigsten alles ausser der Kundename, wenn man eingeloggt ist. Hat sich die Variablen für den Kundenname geändert?

Script aus de Loginbox

<div>
{if $account == true}
{if $registered_customer}
{assign var=kundenname value=$customer_data.customer_default_address.customers_lastname}
<table width="260" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a onfocus="if(this.blur)this.blur()" href="{link page='customer' paction='logoff' conn=SSL}">{txt key=TEXT_LOGOFF}</a></td>
<td width="5"> </td>
<td><div align="right"><a onfocus="if(this.blur)this.blur()" class="login2" href="{link page='customer' conn=SSL}">{txt key=TEXT_ACCOUNT2}</a></div></td>
</tr>
<tr>
<td colspan="3">
<div align="right">
Sie sind angemeldet {if $customer_data.customer_default_address.customers_gender == m}
{txt key=TEXT_MALE}
{elseif $customer_data.customer_default_address.customers_gender == f}
{txt key=TEXT_FEMALE}
{elseif $customer_data.customer_default_address.customers_gender == c}
{txt key=TEXT_COMPANY_GENDER}
{if $customer_data.customer_default_address.customers_company != ''}
{assign var=kundenname value=$customer_data.customer_default_address.customers_company}
{/if}
{/if}
{$kundenname}
{if $customer_data.account_type == 0}
</div>
</td>
</tr>
</table>

{else} Sie sind als Gast eingeloggt. {/if} {else}
<table width="260" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a onfocus="if(this.blur)this.blur()" href="{link page='customer' paction='login' conn=SSL}">{txt key=TEXT_LOGIN}</a></td>
<td width="5"> </td>
<td><div align="right"><span class="login2"><a onfocus="if(this.blur)this.blur()" href="{link page='customer' paction='login' conn=SSL}">{txt key=TEXT_ACCOUNT2}</a></span></div></td>
</tr>
<tr>
<td colspan="3"><div align="right">Sie sind nicht angemeldet!</div></td>
</tr>
</table>
{/if}
{/if}
</div>[/PHP]

Link to comment
Share on other sites

  • 1 year later...

Hier meine Loginbox.html, vielleicht findet ihr ja etwas was ich übersehen habe.

{if $status == "1"}

<h2 class="boxheader">{txt key=TEXT_BOX_TITLE_LOGIN}</h2>

<div class="boxbody">

{assign var=kundenname value=$customer_data.customer_default_address.customers_lastname}

<p>Willkommen

	{if $customer_data.customer_default_address.customers_gender == m}		{txt key=TEXT_MALE}

	{elseif $customer_data.customer_default_address.customers_gender == f}		{txt key=TEXT_FEMALE}

	{elseif $customer_data.customer_default_address.customers_gender == c}		{txt key=TEXT_COMPANY_GENDER}

		{if $customer_data.customer_default_address.customers_company != ''}

			{assign var=kundenname value=$customer_data.customer_default_address.customers_company}

		{/if}

	{/if}

{$kundenname}!

[B]	{if $customer_data.account_type == 0} 

<br><br>	<a href="{link page='customer' conn=SSL}">{txt key=TEXT_ACCOUNT}</a>

	{else}

	Sie sind als Gast eingeloggt.

	{/if}

[/B]	<a href="{link page='customer' paction='logoff' conn=SSL}">{txt key=TEXT_LOGOFF}</a>

</p>

</div>



{else}



<h2 class="boxheader">{txt key=TEXT_BOX_TITLE_LOGIN}</h2>

<div class="boxbody">

{form type=form name=create_account action='customer' paction='login' link_params=getParams method=post conn=SSL}

{form type=hidden name=action value=login}

{form type=hidden name=link_target value=index}

<table width="100%"  border="0" cellpadding="0" cellspacing="0">	<tr>		<td>{txt key=text_email}:</td>	</tr>	<tr>		<td>{form type=text name=email maxlength='50' style='width:170px;'}</td>	</tr>	<tr>

		<td>{txt key=text_password}:</td>	</tr>	<tr>		<td><table width="100%"  border="0" cellpadding="0" cellspacing="0">          <tr>            <td>{form type=password name=password maxlength='30' style='width:80px;'}</td>            <td>{button text=$smarty.const.BUTTON_LOGIN file='login.gif' type='form'}</td>          </tr>        </table></td>	</tr>	<tr>	  <td ><div class="hr"></div><a href="{link page='customer' paction='password_reset' conn=SSL}">{txt key=text_link_lostpassword}</a></td></table>    </tr>

{form type=formend}

</div>

{/if}

Also wenn ich als Gast bestellen möchte, steht in der Loginbox Willkommen Herr xY, obwohl dort eigentlich stehen sollte "Sie sind als Gast angemeldet.".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...