[`Change primary currency`]
[`Currencies`]
[`Primary currency`]
{$system_currencies[$primary].title}
{$primary}
[`I will input all prices in the primary currency`]
[`I will input prices in different currencies depending on product`]
{$wa->csrf()}
[`Other currencies`]
{foreach $currencies as $currency} {if $currency.code != $primary}
{$currency.title}
{$currency.sign}
1 {$currency.code} =
{$currency.rate}
{$primary}
{/if} {/foreach} {capture "template-new-currency"}{literal}
{%#o.title%}
{%#o.sign%}
1 {%#o.code%} =
1
{/literal}{$primary}{literal}
{/literal}{/capture} {if !empty($rest_system_currencies)}
[`Add currency...`]
{foreach $system_currencies as $code => $currency}
{$code} - {$currency.title}
{/foreach}
{/if}
{* dialogs section *} {$convert_text = "[`Convert product prices (%d) to the new primary currency (%s) according to the current exchange rate (%s)`]"} {$convert_text = $convert_text|replace:"%d":$product_count}
[`Change primary currency`]
({$primary})
[`New primary currency`]
{foreach $currencies as $currency} {if $currency.code != $primary}
{$currency.code}
{/if} {/foreach}
{if $product_count > 0}
[`Convert prices`]
{$convert_text}
[`Don't convert, leave all product prices as is`]
{/if}
{$wa->csrf()}
[`or`]
[`cancel`]
{* js templates block*} {foreach $smarty.capture as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {/if} {/foreach}