Admin Plugin - Decimal in non-English language

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 6 años
In my Admin Plugin the update binding (with the use of Kendo grid and json type) of the decimal price only works in English. How can I save the decimal in the Admin page in non-English language?


        public virtual IActionResult Update(ActionContext context, IEnumerable<OrderModel> orders)
        {        
            foreach (var oModel in orders)
            {
                if (oModel != null)
                {
                    var order = _orderService.GetOrderByCustomOrderNumber(oModel.Id.ToString());

                    _genericAttributeService.SaveAttribute<int>(order, "FeesStatusId", oModel.FeesStatusId);
                    _genericAttributeService.SaveAttribute<decimal>(order, "Fees", oModel.Fees); //Decimal
                }
            }
            return new NullJsonResult();
        }


Thanks so much
Hace 6 años
I see that there is an open Issue. Is this the best solution for version 4.0?

https://github.com/nopSolutions/nopCommerce/issues/30
Hace 6 años
I see that there is an open Issue. Is this the best solution for version 4.0?

https://github.com/nopSolutions/nopCommerce/issues/30
Hace 6 años
Why on the "Admin/Product/BulkEdit" page does the binding keep decimals and does not create the known issue?

Can someone help me?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.