在magento 1.9中启用多货币功能

时间:2015-04-14 08:10:35

标签: php magento

我正在使用magento 1.9和ultimo响应主题。

因为我想在我的主页上启用多种货币下拉菜单。我使用this site中的代码。

在页面上进行正确编码后,我在主页上收到错误:

  

解析错误:语法错误,意外'?>',期待标识符(T_STRING)或变量(T_VARIABLE)或C:\ xampp \ htdocs \ app \ design \ frontend \ ultimo \中的'{'或'$'第258行的default \ template \ page \ html \ header.phtml来自行声明。

相关代码:

<?php echo $this->getChildHtml('topSearch') ?>
<p class="welcome-msg"><?php echo $this->getWelcome() ?> <?php echo $this->getAdditionalHtml() ?></p>
<?php echo $this->getChildHtml('topLinks') ?>
<?php echo $this->getChildHtml('store_language') ?>
<!-- START How to add Currency selector to Magento's header -->
<?php echo $this->getChildHtml('custom_currency_selector') ?>
<!-- END   How to add Currency selector to Magento's header -->.

所以请在这件事上帮助我。并启用多币种下拉菜单。因为我是magento的新手。

1 个答案:

答案 0 :(得分:0)

试试这个:

<?php echo $this->getLayout()->createBlock('directory/currency')->setTemplate('directory/currency.phtml')->toHtml() ?>