How to check which language you are showing? Opencart

Please LogIn to Reply!

Post By: guest | 01-23-2013 07:57 Reply

Question

Hi,

Im showing an image on my Open Cart site on the front page. The site is in 2 languages, english and swedish. The image is different for each language so I need to show a certain image depending on which language the is viewed in.

So how can I check that?

Something like;
<? if ($lang=='en') { ..?> in home.tpl

?

The image is hardcoded in home.tpl and not a banner since it also has a #map on it with links to sub pages

Answers

Code: Select all
<?php if ($this->session->data['language'] == 'en') { ?>
       statement here.
<?php } ?>

Reply Or Comment!
Please LogIn to Reply!