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

4 Answers 4

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.

4
  • @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 Commented Jan 23, 2017 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. Commented Jan 23, 2017 at 7:46
  • for that You can follow : magento.stackexchange.com/questions/31217/… above link Commented Jan 23, 2017 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. Commented Jan 23, 2017 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.

0

I am Changing UAE Currency symbol....

add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);

function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'AED' : $currency_symbol = 'AED'; break; } return $currency_symbol; }

1
  • Welcome to MSE. Please specify your problem in detail
    – Jarnail S
    Commented Sep 27, 2020 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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