Currency symbol position issue in RTL mode

Hello,

I’m using CS‑Cart version 4.17.2 and I’ve encountered an issue with the currency symbol position when the store is in RTL mode.

In the Currencies settings, the “After sum” option behaves inconsistently:

  • In the storefront, the behavior seems completely reversed.
  • In the admin panel, the behavior works correctly.

For example:

  • If I enable “After sum”, the storefront shows the currency symbol before the price, while the admin panel shows it after the price.
  • If I disable it, the storefront shows the symbol after the price, while the admin panel shows it before the price.

So no matter which option we choose, the storefront and backend behave opposite to each other, and the storefront logic appears reversed in RTL mode.

Could you please advise how to fix this issue or whether it is a known RTL bug?

Thank you.

{strip}
    {if $settings.General.alternative_currency == "use_selected_and_alternative"}
        {$temp = $value|format_price:$currencies.$primary_currency:$span_id:$class:false:$live_editor_name:$live_editor_phrase}
        {$temp|fn_abt__ut2_format_price:$currencies.$secondary_currency:$span_id:$class nofilter}
        {if $secondary_currency != $primary_currency}
             
            {if $class}<span class="{$class}">{/if}
            (
            {if $class}</span>{/if}
            {$value = $value|format_price:$currencies.$secondary_currency:$span_id:$class:true:$is_integer:$live_editor_name:$live_editor_phrase}
            <bdi>{$value|fn_abt__ut2_format_price:$currencies.$secondary_currency:$span_id:$class nofilter}</bdi>
            {if $class}<span class="{$class}">{/if}
            )
            {if $class}</span>{/if}
        {/if}
    {else}
        {$value = $value|format_price:$currencies.$secondary_currency:$span_id:$class:true:$live_editor_name:$live_editor_phrase}
        <bdi>{$value|fn_abt__ut2_format_price:$currencies.$secondary_currency:$span_id:$class nofilter}</bdi>
    {/if}
{/strip}

/design/themes/abt__unitheme2/templates/common/price.tpl