简体   繁体   English

在“前端产品”页面中获取创建自定义模块

[英]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 你好检查下面的代码可能会帮助你

  1. add into product template (view.phtml) where you want 在所需的位置添加到产品模板(view.phtml)

      <?php echo $this->getChildHtml('mynewblock');?> 
  2. 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.

相关问题 Magento在产品详细信息页面上的自定义模块块中获取产品ID - Magento get product ID in custom module block on product detail page $ _GET创建产品页面 - $_GET to create product page magento将自定义选项卡添加到前端产品详细信息页面不起作用 - magento add custom tab to frontend product detail page not working 是否可以在magento中创建自定义产品查看页面 - Is it possible to create a custom product view page in magento 如何使用 wordpress 上的自定义字段为前端用户创建编辑个人资料页面? - How to create a edit profile page for users on frontend with custom fields on wordpress? WooCommerce-在单个产品页面上创建自定义产品循环 - WooCommerce - create custom product loop on single product page 使用自定义产品 ID 创建一个块 `catalog/product_list` - create a block `catalog/product_list` with custom products ids 在自定义页面中通过网址获取产品ID? - Get Product ID throught url in Custom page? 如何将自定义块作为通常的“产品”添加到商店页面/ archive-product.php - How to add a custom block as a usual “product” to shop page / archive-product.php 尝试在 orocommerce 中创建自定义块类型,但我得到:无法加载块类型“product_variants”。 - Trying to create custom block type in orocommerce but I am getting: Could not load a block type “product_variants”.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM