Jump to content
xt:Commerce Community Forum
Sign in to follow this  
xenon777

Adressbuch - Adressen begrenzen

Recommended Posts

Hallo,

hier eine Modifikation von der address_book.html.

Diese dient dazu die maximale Anzahl an gültigen Adressen (Eintragungen) zu regeln. Wenn Summe X erreicht ist dann kann der User keine Einträge mehr machen weil der Button "Neue Adresse" automatisch ausgeblendet wird.

<h1>{txt key=TEXT_PAGE_TITLE_ADDRESS_BOOK}</h1>

{if $message != ''}{$message}<br />{/if}

{if $address_count != $address_max_count}<p>{txt key=TEXT_ADDRESS_BOOK_INFO}

<br /><br />

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="75"><p><a href="{link page='customer' conn=SSL}">{button text=$smarty.const.BUTTON_BACK file='back.gif'}</a></p></td>

<td><p><a href="{link page='customer' paction=edit_address' conn=SSL}">{button text=$smarty.const.BUTTON_ADD_ADDRESS file='add_address.gif'}</a></p></td>

<td align="right"><small><strong>({$address_count} / {$address_max_count} {txt key=TEXT_POSSIBLE_ENTRIES})</strong></small></td>

</tr>

</table>

{elseif $address_count == $address_max_count} {txt key=TEXT_ADDRESS_BOOK_INFO_FULL}

<br /><br />

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="75"><p><a href="{link page='customer' conn=SSL}">{button text=$smarty.const.BUTTON_BACK file='back.gif'}</a></p></td>

<td align="right"><small>({$address_count} / {$address_max_count} {txt key=TEXT_POSSIBLE_ENTRIES})</small></td>

</tr>

</table>

</p>

{/if}

Hoffe es ist verständlich ;)

Die Sprachtexte

TEXT_ADDRESS_BOOK_INFO

TEXT_ADDRESS_BOOK_INFO_FULL

müssen halt noch angelegt werden.

z.B.:

TEXT_ADDRESS_BOOK_INFO = Sie können noch weitere Adressen anlegen

TEXT_ADDRESS_BOOK_INFO_FULL = Sie können keine Adresse mehr anlegen, bitte löschen Sie vorher eine

Gruß,

xenon

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...