{$_change_is_locked = false} {if !empty($is_shop_supported) && !empty($use_shop_currencies)} {$_change_is_locked = true} {/if} {function _renderCurrency} {$_is_primary = ($_currency && !empty($currency) && $_currency.code === $currency.code)}
  • {if !empty($_currency)}{$_currency.title|escape}{/if} {if !empty($_currency)}{$_currency.sign|escape}{/if}
    {if $_is_primary} [`Primary currency`] {else} 1 {if !empty($_currency)}{$_currency.code}{/if} = {if $_currency}{$_currency.rate|default:"1" + 0}{/if} {if !empty($currency)}{$currency.code}{/if} {/if}
    {if !$_is_primary && empty($_change_is_locked)}
    [`or`] [`cancel`]
    {/if}
  • {/function} {capture assign="_currency_template_html"}{_renderCurrency _currency=[]}{/capture}

    [`Currencies`]

    {if empty($_change_is_locked)} [`Change primary currency`] {/if}
    {if $is_shop_supported}
    {if $use_shop_currencies}
    [`Currency exchange rates changed in Shop-Script settings are updated in CRM in 1 minute.`]
    {/if} {/if}
    {capture assign="_copy_shop_currencies_dialog_html"}

    [`Copy Shop-Script currency settings`]

    [`New main currency rate`]: 1 {if !empty($currency)}{$currency.code}{/if} =  {$shop_currency.code}

    {/capture}