Post by iluvar » Sun Jan 23, 2011 6:17 pm

Hi,
I'm working on payment integration and I need to get the language code for active language.
If user is using english than "EN", if german then "DE".
This data is in localisation table but I don't know how to access this data.
I haven't been working with open cart before so I'm not familiar with everything.
Thanks !

DETARPLUS
Image


User avatar
Newbie

Posts

Joined
Sun Jan 23, 2011 6:13 pm
Location - Zagreb, Croatia

Post by iluvar » Sun Jan 23, 2011 7:03 pm

It was so simple that I did't even tried it at first...

Code: Select all

$this->data['Fields'] = array (
...
"locale" => $this->language->get('code'),
...
};

DETARPLUS
Image


User avatar
Newbie

Posts

Joined
Sun Jan 23, 2011 6:13 pm
Location - Zagreb, Croatia
Who is online

Users browsing this forum: Amazon [Bot] and 3 guests