Magento- How can i add a new custom block in product details page using module

后端 未结 2 597
庸人自扰
庸人自扰 2021-01-24 00:09

I am doing a magento customaization site, I need to add the products addtional attributes like it\'s type,version etc .I am new to magento , How can i add the new custom block

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-24 01:02

    You can add custom template in product-shop (css class name for the section beside product image) below the Quick View area without modifying core files. in your module's layout file add this code for the required result (do replace "module" "block" with your actual module and block names):

    
             
                
                    
                
            
    
    

    the target for custom block used is "other" which is a child html provided by default in view.phtml(/app/design/frontend/base/default/template/catalog/product/view.phtml) of magento.

    Hopes it'll help.

提交回复
热议问题