2

I have two stores English and Arabic. I am using SAR(Saudi Riyal) currency symbol. Right now the price is shown like SAR 1250 but for Arabic Store I want to translate SAR into ريـال and the price show like 699.00 ريـال.

1

Go to Admin Panel : System->Manage Currency->Symbols Then Uncheck Use Standard Checkbox If Selected. Then Write ريـال Instead of SAR.

Now Click On Save Currency Symbol. And Refresh On Frontend Side to see Changes.

  • @Ahmar Arshad : Is Your Problem is Solved from my answer . If yes than you can accept my answer by the click on the "Right Sign" below my answer – H_Parekh Jan 23 '17 at 7:23
  • now it is showing ريـال for english store as well. I just want to show ريـال if the store is Arabic and SAR for english store. – Ahmar Arshad Jan 23 '17 at 7:46
  • for that You can follow : magento.stackexchange.com/questions/31217/… above link – H_Parekh Jan 23 '17 at 7:52
  • In the above solution two different currencies are being used but I want to use only one currency which is Riyal and translate it into Arabic if the Arabic store is selected. – Ahmar Arshad Jan 23 '17 at 8:08
1

Remove the following code from /lib/Zend/Locale/Data/ar_SA.xml

<numbers>
    <currencyFormats numberSystem="latn">
        <currencyFormatLength>
            <currencyFormat type="standard">
                <pattern>¤#0.00</pattern>
            </currencyFormat>
        </currencyFormatLength>
    </currencyFormats>

</numbers>

it will show " ر.س." as default currency symbol for Saudi riyal. To change it to "ريـال" open file /lib/Zend/Locale/Data/ar.xml and replace " ر.س." with "ريـال" at line 6223

don't forget to flush cache

0

Since the US$ is given in the xml file and the other currency is taken from the admin panel, you are getting the error. You need to make the following changes in the ar.xml and the ar_SA.xml file. This changes fixed my issue.

In the lib/Zend/Locale/Data/ar.xml file

You need to replace the US$ with the SAR

and remove the following code from the lib/Zend/Locale/Data/ar_SA.xml file.

¤#0.00

Clear the cache, Re-index and check your website.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.