问题是我只有Magento的主页上显示徽标,并使用getIsHomepage();检查它的主页。现在,我要做的是仅在“仪表板”页面上的标题内显示徽标,您是否知道除了getIsHomepage以外的任何替代方法,但还要检查它是否是“我的帐户”页面?
谢谢
最好的做法是使用xml而不是解析url。将此添加到您的local.xml中:
<customer_account_index>
<reference name="header">
<action method="setTemplate"><template>page/html/customer_account_header.phtml</template></action>
</reference>
</customer_account_index>
并将您的header.phtml文件复制并编辑到 template/page/html/customer_account_header.phtml
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句