Loading...

CS-Cart currency

How to set up alternative currency display format

If you want two different currencies to display on the page product at the same time:

  • Log in the Administration panel.
  • Open the Administration tab.
  • Click the Settings link.
  • Find the Alternative currency display format field.
  • In the check-box change Show prices in selected currencies only into Show prices in default and selected currencies.

How to add a new currency

If you want to add an additional currency:

  • Log in the Administration panel.
  • Open the Administration tab.
  • Click the Currencies link.
  • Click Add currencies button.
  • In the opened window you'll have to specify the following fields:
  • Name – put the new currency name.
  • Code – put the new currency code.
  • Primary currency – if you want to set the new currency as primary tick this box.
  • Sign – put the new currency sign.
  • Rate – put the new currency rate in relation to a primary currency.
  • Click Save button.

How to set the secondary currency to be selected by default in the storefront.

  • Open the core directory of your CS-Cart installation.
  • Find the fn.init.php file located there.
  • Find the following part of code there:
  • 
    foreach ($currencies as $v) {
        if ($v['is_primary'] == 'Y') {
            $secondary_currency = $v['currency_code'];
            break;
        }
    }
    
  • and replace with this one:
  • $secondary_currency = 'DESIRED_CURRENCY_CODE';
    where "DESIRED_CURRENCY_CODE" should be replaced with the currency you want to be selected by default in the storefront.
  • Save the file.

NOTE: This modification will keep your other currencies selectable but only set the specified one as selected by default.

NOTE: This will put the required currency on the first place, but the rate will still be counted in relation to the primary currency

 

Comments

*****

"Good to see a tlanet at work. I can't match that."

*****

"Can you help me, i want to change not to divide but to multiply , thanks in advance "

New post

Type the characters you see in the picture below.

Up