Я провел хороший поиск и нашел теги customer_logged_in
и customer_logged_out
, но я не могу заставить их работать должным образом, я уверен, что это связано с моим непониманием их.
Моя цель — скрыть ссылки для входа, учетной записи и оформления заказа из блока top.links
, когда пользователь не вошел в систему, и показать их, когда пользователь вошел в систему.
Я поместил следующее в конец моего файла local.xml
, чтобы попытаться удалить ссылку для входа в систему:
<customer_logged_in>
<reference name="top.links">
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>
</reference>
</customer_logged_in>
</default>
Но это не работает. Может кто-нибудь объяснить, почему это не работает? Это сводит меня с ума!