結構簡単にできます。
修正箇所
- LC_Page.php
- header.tpl
LC_Page.php
function init(){ // ログイン判定 $objCustomer = new SC_Customer(); if($objCustomer->isLoginSuccess()) { $this->tpl_login = true; $this->tpl_user_point = $objCustomer->getValue('point'); $this->tpl_name1 = $objCustomer->getValue('name01'); $this->tpl_name2 = $objCustomer->getValue('name02'); } }
header.tpl
<!--{if $tpl_login}--> ログインしている場合の表示 <!--{else}--> ログインしていない場合の表示 <!--{/if}-->
ヘッダーにお客様名を表示したりポイントを表示したり出来るようになります。
※この記事は、あくまで備忘録です。参考にしていただいて構いませんが、参考にされて製作されたサイトでのトラブル等については一切責任を持ちませんので、予めご了承下さい。