Post by Dieter » Fri Oct 10, 2008 10:53 pm

Hi folks,

Just a quick one:

How do I get my active currency in my layout.tpl file?
I need this because I only want to show a box if the currency is Pound/Sterling
and hide the box when Euro or Dollars are selected

Cheers,

Dieter

Newbie

Posts

Joined
Wed Sep 10, 2008 6:57 pm

Post by bruce » Fri Oct 10, 2008 11:05 pm

You want to make this change in the currency module where the value is already available in the template as $default.
The value is made available in the module template by the following line of code.

$view->set('default', $currency->getCode());

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 1 guest