Jump to content
andre60

[gelöst]anmelde/abmelde Button

Recommended Posts

Im Standardumfang von PrestaShop ist ein Modul " blockuserinfo" vorhanden. Dieses wird im Normalfall in den Bereich TopOfPage(s) eingehängt und bietet immerhin schon mal einen anmelden / abmelden Link, den müsste man nur noch mit CSS "hübsch"  machen.

 

LG Klaus / Lockesoft

Share this post


Link to post
Share on other sites

in meinem template blockuserinfo.tpl fehlen meiner meinung nach die zeilen zur an- abmeldung.

wie könnte ich diese korrekt einfügen?

 

 

<!-- Block user information module HEADER -->
 
 
<div id="header_user">
<ul id="header_nav">
{if !$PS_CATALOG_MODE}
<li id="shopping_cart">
          <strong class="opancart"></strong>
<b>
<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span>
<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span>
<span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
{if $cart_qties > 0}
{if $priceDisplay == 1}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
{else}
{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
{/if}
{/if}
</span>
<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='empty' mod='blockuserinfo'}</span>
</b>
</li>
{/if}
 
{*<li id="header_user_info">
{l s='Welcome' mod='blockuserinfo'}
{if $logged}
<a href="{$link->getPageLink('my-account', true)}" class="account"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
<a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a>
{else}
<a href="{$link->getPageLink('my-account', true)}" class="login">{l s='Log in' mod='blockuserinfo'}</a>
{/if}
</li>
*}
</ul>
</div>
<!-- /Block user information module HEADER -->
 

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.   Restore formatting

  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.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More