I have store in two views Arabic and English. if I delete this code from

<currencyFormats numberSystem="latn">
<currencyFormat type="standard">
<!-- <pattern>¤#0.00</pattern> !-->

the currency code show like ر.س in both store view.

also, I can't find SAR currency in root.xml

I found the path of this symbol "ر.س" in


2- How to be SR or SAR in English view?

3- how to solve this issue without changing in core files?

4- how to change a position of currency yo right? I edit the position to 'position' => self::RIGHT,in vendor/magento/zendframework1/library/Zend/Currency.php but it has shown between price.

enter image description here

Magento CE 2.1.9

  • @PYYick the path of functions are for magento 1. can you help me to know the path in magento 2 – Amd2030 Dec 21 '17 at 9:59
  • This answer is M2 already – PY Yick Dec 21 '17 at 10:06
  • @PYYick ok i found this zendframework1/library/Zend/Currency.php what about public function formatTxt on module-directory/Model/Currency.php? – Amd2030 Dec 21 '17 at 10:18
  • The file is located under vendor/magento. You can override formatTxt to customize the currency format. – PY Yick Dec 21 '17 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.