[英]Get create Custom Block in FrontEnd Product page
In my magento i want to create a Block in Product Page for this itried like this 在我的magento中,我想为此产品在产品页面上创建一个块
Magento- How can i add a new custom block in product details page using module Magento-如何使用模块在产品详细信息页面中添加新的自定义模块
But no use 但是没用
Any thing wrong i did here 我在这里做错了什么
Any Ideas 有任何想法吗
Hello check below code may be help you 你好检查下面的代码可能会帮助你
add into product template (view.phtml) where you want 在所需的位置添加到产品模板(view.phtml)
<?php echo $this->getChildHtml('mynewblock');?>
call block into your custom template xml or catalog.xml 调用块到您的自定义模板xml或catalog.xml中
<catalog_product_view> <reference name="product.info"> <block type="core/template" name="mynewblock" template="hello/hello.phtml" /> </reference> </catalog_product_view>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.