我正在尝试想出如何创建自定义phtml文件,以便在view.phtml上包含它(最终可以从任何默认的Magento phtml文件中调用)。
我已经创建了一个名为productbadges.phtml的单独phtml文件,并将需要的内容放入其中。
This will be pulled through as the last item in
I understand the callout usually is
<?php echo $this->getChildHtml('phtmlfilename') ?>
However I know I need to do add something to catalog.xml so Magento recognizes the callout and can source the correct file. But I do not properly understand Magento's XML syntax.
Could anyone assist?