私がログインしているときに、「ログアウト」リンクがトップリンクセクションに表示されることがあります。Magentoトップリンク「ログアウト」リンクが時々表示されない
特定のセッションに依存するように見えます。つまり、ブラウザを閉じて後で戻ってきた場合などです。奇妙なことは分かっています。
このコードは、時々動作するように見える私のcustomer.xmlにあります。
<!--
Load this update on every page when customer is logged in
-->
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
</reference>
</customer_logged_in>
<!--
Load this update on every page when customer is logged out
-->
<customer_logged_out>
<!---<reference name="right">
<block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
</reference>-->
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
</reference>
<remove name="reorder"></remove>
</customer_logged_out>
ロードチェーンの後で何らかの理由で上書きされてしまいましたが、このリンクを削除するための参照が見つかりませんでした。
また、この正確なコードを最後にロードする必要があるlocal.xmlファイルに追加しました。そこには運がありません。
何が起こっているかについてのご意見はありますか?私はMagento 1.6.1コミュニティを使用しています。これは、不安定な行動パターンに基づいて、これがバグかもしれないと私には思われます。
「ログアウト」は表示されません。 –