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>
}