magento调用newsletter显示到页面的任何地方

先确保启用了newsletter这个模块:

system -> configuration -> advanced
from there enable newsletter module . and then you can use the above code to call it anywhere.

然后把如下代码粘贴到模板文件自己想要放置的位置即可:

<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>

未经允许不得转载:哈勃私语 » magento调用newsletter显示到页面的任何地方

本文共275个字 创建时间:2018年11月6日15:53   

分享到:更多 ()

相关推荐

  • 暂无文章