Когда я вошел в систему, иногда моя ссылка «Выйти» показывается в верхнем разделе ссылок, иногда нет.
Кажется, это зависит от конкретной сессии, то есть, если я закрою свой браузер и вернусь позже, он может быть там.Странно, я знаю.
Этот код находится в моем 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.Мне кажется, это может быть ошибка, основанная на нестабильном поведении.