numeric values in arabic

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 Jahre weitere
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
6 Jahre weitere
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>
        }
6 Jahre weitere
I see, I will post a better solution here, later.
6 Jahre weitere
thanks a lot..will be waiting eagerly
6 Jahre weitere
Which's the version of nopCommerce you are using?
6 Jahre weitere
version 3.9
6 Jahre weitere
Too much things needed to modify, so that, I created a plugin for it.
Please download it here
6 Jahre weitere
It required to install Core plugin - http://ima9ines.com/core-plugin-390
6 Jahre weitere
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
6 Jahre weitere
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.