0

私は Magento 1.7.0.2 を使用しており、顧客がログアウトしている場合にのみいくつかのリンクを表示したいと考えています。

以下のコードを local.xml に追加しても何も起こりません (ログアウトされます):

 <customer_logged_out>
        <reference name="top.links">
            <action method="addLink" translate="label title" module="customer"><label>Test</label><url helper="customer/getLoginUrl"/><title>Test</title><prepare/><urlParams/><position>100</position></action>
        </reference>
        <remove name="reorder"></remove>
</customer_logged_out>

ただし、customer_logged_out タグを削除するとすぐに、リンクが表示されます (すべてのユーザーに対して)。

    <reference name="top.links">
        <action method="addLink" translate="label title" module="customer"><label>Test</label><url helper="customer/getLoginUrl"/><title>Test</title><prepare/><urlParams/><position>100</position></action>
    </reference>
    <remove name="reorder"></remove>

customer_logged_in タグを使用しようとすると、何も表示されません。

これらの logged_in/logged_out タグが local.xml で機能しないのはなぜですか?

4

0 に答える 0