
Originally Posted by
Steven300
Hi,
This will work if you use just one currency:
In includes/templates/
your_template/templates/tpl_shopping_cart_default.php
I think it will be line 243.
PHP Code:
<div id="sricTotal"><?php echo SRIC_WORD_TOTAL . ":"; ?> <?php echo $currency_code_opt_total_before . $currency_symbol . $sric_total . $currency_code_opt_total_after; ?></div>
Replace with:
PHP Code:
<div id="sricTotal"><?php echo SRIC_WORD_TOTAL . ":"; ?> <?php echo $currency_code_opt_total_before . $sric_total . "Your currency symbol" . $currency_code_opt_total_after; ?></div>
(change the "Your currency symbol" bit)
I´ve found better solution. At the beginning of code is command for choosing currency symbol, you just need edit this code:
PHP Code:
//Get currency symbol
$currency_code = $_SESSION['currency'];
switch ($currency_code) {
case "GBP":
$currency_symbol = "Ł";
break;
case "USD":
$currency_symbol = "$";
break;
case "EUR":
$currency_symbol = "€";
break;
default:
$currency_symbol = "$";
break;
}
to something like this:
PHP Code:
//Get currency symbol
$currency_code = $_SESSION['currency'];
switch ($currency_code) {
case "GBP":
$currency_symbol = "Ł";
break;
case "USD":
$currency_symbol = "$";
break;
case "EUR":
$currency_symbol = "€";
break;
case "your currency code":
$currency_symbol = "your currency symbol";
break;
default:
$currency_symbol = "default currency symbol";
break;
}
and that is it. It works fine for both multi languages and single language sides.
If you like to have your currency symbol after price, change this code:
PHP Code:
<div id="sricTotal"><?php echo SRIC_WORD_TOTAL . ":"; ?> <?php echo $currency_code_opt_total_before . $currency_symbol . $sric_total . $currency_code_opt_total_after; ?></div>
to this:
PHP Code:
<div id="sricTotal"><?php echo SRIC_WORD_TOTAL . ":"; ?> <?php echo $currency_code_opt_total_before . $sric_total . $currency_symbol . $currency_code_opt_total_after; ?></div>
I am so sorry for my yesterday post, I don´t know that solution is so simple. Please, don't bother at my I am PHP beginner. BTW thx for your contribution