Exemple #1
0
        public ActionResult Settings(decimal?[] shipping_cost, int?[] shipping_destination, long?shippingProfileID,
                                     ShippingProfileType shippingType)
        {
            if (shippingProfileID.HasValue)
            {
                // delete existing rules in profile
                if (shippingType == ShippingProfileType.FLATRATE)
                {
                    ShippingProfile.UpdateFlatrateShipping(shippingProfileID.Value, shipping_cost, shipping_destination, subdomainid.Value);
                }
            }

            return(Json(OPERATION_SUCCESSFUL.ToJsonOKData()));
        }