How to apply custom layout to cms page with customer login/logout condition in Magento - Magento Source24

Hello magento friends today's i'm share with you to How to apply custom layout to cms page with customer login/logout condition in Magento 


How to apply custom layout to cms page with customer login/logout condition in Magento

add this code to cms.xml 



<customer_logged_out>
    <reference name=”root”>
        <action method=”setTemplate”><template>page/yourCustomLayout.phtml</template></action>
    </reference>
</customer_logged_out>

<customer_logged_in>
    <reference name=”root”>
        <action method=”setTemplate”><template>page/3columns.phtml</template></action>
    </reference>
</customer_logged_in>

Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post