如何自定义 cs-cart 以在除主页以外的所有页面中显示两种货币?

How to customize cs-cart to show both currencies in all pages but home?

我正在尝试自定义我的商店以同时显示两种货币,但我希望它们显示在除首页之外的所有页面上。我试着编辑 common_templates/price.tpl 来测试:

{* $Id$ *}
{strip}
{if $settings.General.alternative_currency == "Y" AND $controller == 'products'}
        {$value|format_price:$currencies.$primary_currency:$span_id:$class:false}{if $secondary_currency != $primary_currency}&nbsp;{if $class}<span class="{$class}">{/if}({if $class}</span>{/if}{$value|format_price:$currencies.$secondary_currency:$span_id:$class:true:$is_integer}{if $class}<span class="{$class}">{/if}){if $class}</span>{/if}{/if}
{else}
        {$value|format_price:$currencies.$secondary_currency:$span_id:$class:true}
{/if}
{/strip}

我想应该只在产品页面上显示两种货币的价格...?我究竟做错了什么?谢谢。

请尝试

...
{if $settings.General.alternative_currency == "Y" && $runtime.controller == 'products' && $runtime.mode == 'view'}
...