当您点击“发送给朋友的电子邮件”时您将被引导至表格提交。我想在产品视图页面中显示此表单,而不是“发送给朋友”#39;链接。如何在view.phtml中调用send.phtml模板? 我尝试了这个
Magento
但这不起作用,显示错误。请帮忙
答案 0 :(得分:0)
使用此功能,您错过了block type
<?php
echo $this->getLayout()->createBlock("sendfriend/send")->setTemplate("sendfriend/send.phtml")->toHtml();?>