Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ConfigurationModel.cs

using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Plugin.Shipping.FixedByWeightByTotal.Models;

public record ConfigurationModel : BaseSearchModel
{
    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.LimitMethodsToCreated")]
    public bool LimitMethodsToCreated { get; set; }

    public bool ShippingByWeightByTotalEnabled { get; set; }

    public ConfigurationModel()
    {
        AvailableCountries = new List();
        AvailableStates = new List();
        AvailableShippingMethods = new List();
        AvailableStores = new List();
        AvailableWarehouses = new List();
    }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.Store")]
    public int SearchStoreId { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.Warehouse")]
    public int SearchWarehouseId { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.Country")]
    public int SearchCountryId { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.StateProvince")]
    public int SearchStateProvinceId { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.Zip")]
    public string SearchZip { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.FixedByWeightByTotal.Fields.ShippingMethod")]
    public int SearchShippingMethodId { get; set; }

    public IList AvailableCountries { get; set; }
    public IList AvailableStates { get; set; }
    public IList AvailableShippingMethods { get; set; }
    public IList AvailableStores { get; set; }
    public IList AvailableWarehouses { get; set; }
}