【发布时间】:2020-06-30 13:27:42
【问题描述】:
我正在尝试在显示产品详细信息的自定义页面之一上添加货币选择器。 我想允许我的访问者从此自定义页面更改默认货币并相应地查看产品定价。
我已经在我的 custom.tpl 中添加了这段代码
<input type="hidden" name="token" value="{$LANG.go}">
<select name="currency" onchange="submit()" class="form-control">
<option value="">Change Currency (A$ AUD)</option>
{foreach from=$currencies item=listcurr}
<option value="{$listcurr.id}"{if $listcurr.id == $currency.id} selected{/if}>{$listcurr.prefix} {$listcurr.code}</option>
{/foreach}
</select>
</form> ```
But it is not working, every time I select the currency from the dropdown, it refreshes the page. but nothing changes,
please guide what I am doing wrong.
Thanks in advance
Aqsa,
【问题讨论】: