php – 如何在标题magento中显示wishlist块
发布时间:2020-12-13 17:19:17 所属栏目:PHP教程 来源:网络整理
导读:我想在我的magento-1.6网站上的标题块上加载我的’wishlist’. 我使用的是magento1.6.2.0.现在我的愿望清单出现在左侧区块. 我刚刚将wishlist.xml的引用从左边更改为header reference name="header" block type="wishlist/customer_sidebar" name="wishlist_
我想在我的magento-1.6网站上的标题块上加载我的’wishlist’.
我使用的是magento1.6.2.0.现在我的愿望清单出现在左侧区块. 我刚刚将wishlist.xml的引用从左边更改为header <reference name="header"> <block type="wishlist/customer_sidebar" name="wishlist_sidebar" as="wishlist" template="wishlist/sidebar.phtml"/> </reference> 但它不会来 解决方法
所有布局XML文件都是一个 – 也就是说,它们作为典型渲染的一部分进行合并.
您需要编辑页面/ html / header.phtml文件并添加以下代码: <?php echo $this->getChildHtml('wishlist') ?> 在您执行任何此操作之前,您应该阅读Official Magento Knowledge Base中的文章,特别注意主题层次结构和开发人员文章.获得主题自定义的时间是在项目的开始. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |