protected void Unwrap_Click(object sender, EventArgs e) { ShippingMethod method = BaseProviderModule.ShippingMethod; method.ShippingProviderId = Settings.ShippingProviderId; ShippingMethod.Update(method); // Redirect so that IsPostBack = false in the base provider module Response.Redirect(Request.Url.ToString()); }
private void SaveData() { ShippingMethod.Name = NameField.Text.Trim(); Settings.ShippingProviderId = ShippingProviderField.SelectedValue; Settings.ShippingProviderServiceCode = ShippingProviderServiceCodeField.SelectedValue; if (string.IsNullOrEmpty(MethodAdjustmentAmountField.Text)) { ShippingMethod.Adjustment = 0M; } else { ShippingMethod.Adjustment = Decimal.Parse(MethodAdjustmentAmountField.Text); } ShippingMethod.AdjustmentType = (ShippingMethodAdjustmentType) Enum.Parse(typeof(ShippingMethodAdjustmentType), MethodAdjustmentTypeField.SelectedValue); Settings.Visible = ShipMethodVisibleField.Checked; ShippingMethod.Update(ShippingMethod); }
private void SaveData() { Settings.Visible = ShipMethodVisibleField.Checked; Settings.ShippingProviderId = BaseProviderField.SelectedValue; ShippingMethod.Update(ShippingMethod); }