Hi all,
I've recently started playing with Open Cart, and trying to make my first little customizations at the template.
What I'd like to do is to change the labels of Currency and Language in the left part of the header and instead try to show the currently active currency (i.e. Euro) and language (i.e. English).
Is it possible?
Thanks a lot in advance!
I solved my problem, and just writing here my solutions for other developers 
I just edited my custom theme's currency.tpl and language.tpl files this way :
currency.tpl
language.tpl

I just edited my custom theme's currency.tpl and language.tpl files this way :
currency.tpl
Code: Select all
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['symbol_left'] && $currency['code'] == $code) { ?>
<strong><?php echo $currency['symbol_left']; ?></strong>
<?php } elseif ($currency['symbol_right'] && $currency['code'] == $code) { ?>
<strong><?php echo $currency['symbol_right']; ?></strong>
<?php } ?>
[color=#FF0000] <?php if ($currency['code'] == $code) { ?>
<span class="hidden-xs hidden-sm hidden-md"><?php echo $currency['title']; ?></span>
<?php } ?>[/color]
<?php } ?>
Code: Select all
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $code) { ?>
<img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>">
[color=#FF0000]<span class="hidden-xs hidden-sm hidden-md"><?php echo $language['name']; ?></span>[/color]
<?php } ?>
<?php } ?>
Who is online
Users browsing this forum: No registered users and 5 guests