Magento. Insert block into another without change template code

前端 未结 7 1915
耶瑟儿~
耶瑟儿~ 2021-02-06 01:36

I\'ve tried to find solution but with no results. My task is to write module. It should insert some html into existing block.

I noticed that when I used layout .xml file

7条回答
  •  死守一世寂寞
    2021-02-06 02:11

    I found an elegant solution using Observer and wrote a post on the company blog: http://www.fxplabs.com.br/blog/instanciando-blocos-em-qualquer-lugar-magento/

    translation to english:

    http://translate.google.com/translate?sl=pt&tl=en&js=n&prev=_t&hl=pt-BR&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.fxplabs.com.br%2Fblog%2Finstanciando-blocos-em-qualquer-lugar-magento%2F

提交回复
热议问题