【发布时间】:2015-04-14 08:10:34
【问题描述】:
我正在使用带有 ultimo 响应主题的 magento 1.9。
因为我想在我的主页中启用多币种下拉菜单。我使用来自this site 的代码。
在页面上正确编码后,我在主页上收到错误:
解析错误:语法错误,意外的 '?>',在 C:\xampp\htdocs\app\design\frontend\ultimo\default 中需要标识符 (T_STRING) 或变量 (T_VARIABLE) 或 '{' 或 '$' \template\page\html\header.phtml 在第 258 行。来自 line 声明。
相关代码:
<?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 的新手。
【问题讨论】:
-
粘贴 header.phtml 的内容