i'm trying remove link account navigation per-store basis. i'm removing 2 links, 1 default account navigation , 1 "custom" header navigation.
the remove action custom link kicks in , link gets removed, remove action default account navigation ignored.
if add remove action default account navigation inside <customer_logged_in>
handle works fine. gets ignored when it's inside store view handle.
i'm using code below, in local.xml
<store_foo> <!-- doesn't kick in --> <reference name="customer_account_navigation" > <action method="removelinkbyname"><name>newsletter</name></action> </reference> <!-- kicks in --> <reference name="customer_header_navigation" > <action method="removelinkbyname"><name>header_account_newsletter</name></action> </reference> </store_foo>
any ideas?
if @ handles fire on customer account page
you can see store handle (store_default
) fires before customer_account_index
handle. layout xml updates processed in handle order. default
handles run first (with local.xml
last), store_default
handles run (again, local.xml
last), etc.
since it's the customer_account_index
handle adds block customer_account_navigation
page, updates have no blocks reference.
it works customer_logged_in
, since handle fires after customer_account_index
handle.