Post by khaleejDev » Tue Aug 14, 2018 1:40 am

Hi Guys,
I am new to openCart and using the latest version.
I am developing a store with two languages but only one currency. Is there a way to translate the currency ?
e.g
The currency is Saudi Riyal with symbol in Arabic س.ر , but in English the symbol is SAR

I have been searching the forums for a while now with no luck :(

Appreciate your help :)

Newbie

Posts

Joined
Tue Jul 10, 2018 12:37 am

Post by straightlight » Tue Aug 14, 2018 8:36 am

Code: Select all

$this->currency->format($this->currency->convert($currency, 'ISO_CODE_3', $this->config->get('config_currency'), $this->config->get('config_currency'));
where: $currency would be the amount currency and the ISO_CODE_3 would be the ISO Code 3 of the country you wish to convert from. The $this->config->get('config_currency') is the ISO Code 3 of the current country store setting the guest / customer is traveling into.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by daniGo » Tue Aug 14, 2018 3:43 pm

Is there a way to translate the currency ?
No, there is no way to that. Opencart doesn't have multilingual currency. You can try to search in marketplace for some extension.

http://www.gombac.si


Active Member

Posts

Joined
Wed Mar 20, 2013 4:49 pm
Location - Slovenia
Who is online

Users browsing this forum: Bing [Bot], jagall, moreduff and 261 guests