Add some block to product view page through module xml file Magento

前端 未结 2 1834
青春惊慌失措
青春惊慌失措 2021-01-16 03:14

Hi i am developing a simple extension in which

i need to insert a new block on product page through xml file. Below is the xml file of my module

&l         


        
2条回答
  •  北海茫月
    2021-01-16 03:44

    I assume you have file and folder in your design like this

    /template/total/prototal.phtml
    

    In your local.xml you can add like below

    
         
               
          
    
    

    Now in your catalog/product/view.phtml, call your custom block

    Before

    getChildHtml('addtocart') ?>
    

    Add

    getChildHtml('total_prototal') ?>
    

提交回复
热议问题