Webiant Logo Webiant Logo
  1. No results found.

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

_ByWeightByTotal.cshtml

@model Nop.Plugin.Shipping.FixedByWeightByTotal.Models.ConfigurationModel
@using Nop.Core
@using Nop.Plugin.Shipping.FixedByWeightByTotal.Models
@using Nop.Web.Framework.Models.DataTables
@inject Nop.Core.Domain.Common.AdminAreaSettings adminAreaSettings
@inject Nop.Services.Stores.IStoreService storeService
@inject Nop.Services.Common.IGenericAttributeService genericAttributeService
@inject IWorkContext workContext
@{
    var stores = await storeService.GetAllStoresAsync();
}

@{
    const string hideSearchBlockAttributeName = "FixedByWeightByTotalPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}



@T("Plugins.Shipping.FixedByWeightByTotal.Formula") @T("Plugins.Shipping.FixedByWeightByTotal.Formula.Value")

@await Html.PartialAsync("Table", new DataTablesModel { Name = "shipping-byweight-grid", UrlRead = new DataUrl("RateByWeightByTotalList", "FixedByWeightByTotal", null), UrlDelete = new DataUrl("DeleteRateByWeightByTotal", "FixedByWeightByTotal", null), SearchButtonId = "search-shipping-byweight-records", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchStoreId)), new FilterParameter(nameof(Model.SearchWarehouseId)), new FilterParameter(nameof(Model.SearchCountryId)), new FilterParameter(nameof(Model.SearchStateProvinceId)), new FilterParameter(nameof(Model.SearchZip)), new FilterParameter(nameof(Model.SearchShippingMethodId)) }, ColumnCollection = new List { new ColumnProperty(nameof(ShippingByWeightByTotalModel.StoreName)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.Store").Text, Width = "200", Visible = stores.Count > 1 }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.WarehouseName)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.Warehouse").Text, Width = "200" }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.CountryName)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.Country").Text, Width = "200" }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.StateProvinceName)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.StateProvince").Text, Width = "200" }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.Zip)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.Zip").Text, Width = "200" }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.ShippingMethodName)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.ShippingMethod").Text, Width = "200" }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.DataHtml)) { Title = T("Plugins.Shipping.FixedByWeightByTotal.Fields.DataHtml").Text, Width = "400", Encode = false }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.Id)) { Title = T("Admin.Common.Edit").Text, ClassName = NopColumnClassDefaults.Button, Width = "100", Render = new RenderCustom("renderColumnEdit") }, new ColumnProperty(nameof(ShippingByWeightByTotalModel.Id)) { Title = T("Admin.Common.Delete").Text, ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonRemove(T("Admin.Common.Delete").Text), Width = "100" } } })