Is there any way to round the GrandTotal?
I have tried to override the value in OrderTotalCalculator.CalculateFromCarrier but it still has decimals when created in Litium.
public class OrderTotalCalculator : Foundation.Modules.ECommerce.Plugins.Orders.OrderTotalCalculator
{
public override void CalculateFromCarrier(OrderCarrier orderCarrier, SecurityToken token)
{
base.CalculateFromCarrier(orderCarrier, token);
orderCarrier.GrandTotal = RoundPrice(orderCarrier.GrandTotal);
}
private decimal RoundPrice(decimal price)
{
return Math.Round(price);
}
}
Anyone having a suggestion?
Litium version: 5.5.1