Dali
Dali

Reputation: 7882

Magento - hide some of the footer links

how can I hide some of the footer links if the user is not logged in?

Thank you.

Upvotes: 3

Views: 921

Answers (2)

OSdave
OSdave

Reputation: 8587

in your local.xml (in your package/design/layout/ folder) you can use the special handle customer_logged_out, for example:

<customer_logged_out>
   <remove name="name_of_block_to_remove"></remove>
</customer_logged_out>

Upvotes: 1

B00MER
B00MER

Reputation: 5491

Create a new static block with the links you want to hide if logged in.

Insert it into your CMS page with:

{{block type="core/template" template="myfooterlinks.phtml"}}

Inside myfooterlinks.phtml would exist:

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

Your links here

<?php endif; ?>

Upvotes: 3

Related Questions