Webiant Logo Webiant Logo
  1. No results found.

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

Tax.cshtml

@model TaxSettingsModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.Settings.Tax").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Tax settings");
}

@{
    const string hideCommonBlockAttributeName = "TaxSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hideDefaultTaxAddressBlockAttributeName = "TaxSettingsPage.HideDefaultTaxAddressBlock";
    var hideDefaultTaxAddressBlock = await genericAttributeService.GetAttributeAsync(customer, hideDefaultTaxAddressBlockAttributeName);

    const string hideTaxDisplayingBlockAttributeName = "TaxSettingsPage.HideTaxDisplayingBlock";
    var hideTaxDisplayingBlock = await genericAttributeService.GetAttributeAsync(customer, hideTaxDisplayingBlockAttributeName);

    const string hideShippingBlockAttributeName = "TaxSettingsPage.HideShippingBlock";
    var hideShippingBlock = await genericAttributeService.GetAttributeAsync(customer, hideShippingBlockAttributeName);

    const string hidePaymentBlockAttributeName = "TaxSettingsPage.HidePaymentBlock";
    var hidePaymentBlock = await genericAttributeService.GetAttributeAsync(customer, hidePaymentBlockAttributeName);

    const string hideVATBlockAttributeName = "TaxSettingsPage.HideVATBlock";
    var hideVATBlock = await genericAttributeService.GetAttributeAsync(customer, hideVATBlockAttributeName);
}

    

@T("Admin.Configuration.Settings.Tax")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TaxSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Tax.Common", Model) @await Html.PartialAsync("_Tax.DefaultTaxAddress", Model) @await Html.PartialAsync("_Tax.TaxDisplaying", Model) @await Html.PartialAsync("_Tax.Shipping", Model) @await Html.PartialAsync("_Tax.Payment", Model) @await Html.PartialAsync("_Tax.VAT", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.TaxSettingsDetailsBlock, additionalData = Model })