Hello,
I've extended an existing shipping provider, and even though CalculateShippingFee is called it and returning a proper value, it doesnt update the shippingFee, is there anything else I am missing? A setting or something?
public class ExtendedPostDanmarkServicePointProvider : PostDanmarkServicePoint { public override PriceRaw CalculateShippingFee(Order order) { if (Dynamicweb.Context.Current.Items["IsHandlingShipping"] != null && Convert.ToBoolean(Dynamicweb.Context.Current.Items["IsHandlingShipping"])) return null; HttpContext.Current.Items["IsHandlingShipping"] = true; var shippingFee = base.CalculateShippingFee(order); var rate = LiveIntegrationService.Instance.CalculateOrder(order); if (rate > 0.0) { shippingFee = new PriceRaw(Convert.ToDouble(rate), Dynamicweb.Ecommerce.Common.Context.Currency); } return shippingFee; } }
Thank you