Post by hiddekat » Tue Dec 13, 2011 12:17 am

How to display only the current language and currency?

I would like to show only the current language and currency, but don't know which code to use.

I tried $this->data['currentcurrency'] = $this->load->model('localisation/currency');
and php echo $currentcurrency, but that doesn't work.

If anyone know hows how to please tell me!

Thanks in advance & kind regards,
Hidde

Newbie

Posts

Joined
Mon Dec 05, 2011 9:52 pm

Post by hiddekat » Tue Dec 13, 2011 12:17 am

my version of opencart 1.5.1.3

Newbie

Posts

Joined
Mon Dec 05, 2011 9:52 pm

Post by hiddekat » Tue Dec 13, 2011 12:46 am

Fixed it,

<br /><?php echo $_SESSION['currency']; ?>
<br /><?php echo $_SESSION['language']; ?>

thanks anyway

Newbie

Posts

Joined
Mon Dec 05, 2011 9:52 pm

Post by josefe87 » Thu Apr 10, 2014 5:19 am

thank you man! :ok:
hiddekat wrote:Fixed it,

<br /><?php echo $_SESSION['currency']; ?>
<br /><?php echo $_SESSION['language']; ?>

thanks anyway

Newbie

Posts

Joined
Sun Mar 09, 2014 9:34 am

Post by NIOVI » Wed Jul 13, 2016 10:55 am

Can anyone get this working in the current version.
The session variables are not being displayed in current version if included in header.tpl.

I just want the currency code and title for the session to be displayed.

Thanks

Newbie

Posts

Joined
Wed Jul 13, 2016 8:55 am
Who is online

Users browsing this forum: No registered users and 5 guests