numeric values in arabic

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 6 años
Hi,

No luck..this one is not working as it seems some issue in variable i believe because when removing ar its working but for all as before

also please suggest along with you expert resolution for above that for product page pricing where we can place this script
Hace 6 años
Hi,

Its working now as i have changed currency capture as variable to language culture (underlined)

but still there is some issue in arabic numeral as its not showing "from prices" for grouped products..showing just invalid number in arabic text

also on product details page still showing english numbers

please see the screenshots in the links below







@{
            var workContext = EngineContext.Current.Resolve<Nop.Core.IWorkContext>();
            var currencyAR = workContext.WorkingLanguage.LanguageCulture == "ar-AE";
        }
        @if (currencyAR)
        {
            <script type="text/javascript">
            $(document).ready(function () {
                $('span.price').each(function (index, elem) {
                    var $elem = $(elem),
                        number = $elem.text().replace('د.إ.', '').trim(),
                        formatedNumber = Number.parseFloat(number).toLocaleString('ar-AE', { style: 'currency', currency: 'AED' });

                    $elem.text(formatedNumber);
                });
            });
            </script>
        }
Hace 6 años
I see, I will post a better solution here, later.
Hace 6 años
thanks a lot..will be waiting eagerly
Hace 6 años
Which's the version of nopCommerce you are using?
Hace 6 años
version 3.9
Hace 6 años
Too much things needed to modify, so that, I created a plugin for it.
Please download it here
Hace 6 años
It required to install Core plugin - http://ima9ines.com/core-plugin-390
Hace 6 años
Hi,

Thanks a lot for the same but your link site is not working as i have tried several times and getting connection timeout error
Hace 6 años
Sorry, it should be http://ima9ines.com/en/core-plugin-390

EDIT

Both links worked for now
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.