@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "discount-advanced-mode" })
Try your search with a different keyword or use * as a wildcard.
@model DiscountModel
@{
const string hideInfoBlockAttributeName = "DiscountPage.HideInfoBlock";
var customer = await workContext.GetCurrentCustomerAsync();
var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);
const string hideRequirementsBlockAttributeName = "DiscountPage.HideRequirementsBlock";
var hideRequirementsBlock = await genericAttributeService.GetAttributeAsync(customer, hideRequirementsBlockAttributeName, defaultValue: true);
const string hideUsageHistoryBlockAttributeName = "DiscountPage.HideUsageHistoryBlock";
var hideUsageHistoryBlock = await genericAttributeService.GetAttributeAsync(customer, hideUsageHistoryBlockAttributeName, defaultValue: true);
const string hideAppliedToProductsBlockAttributeName = "DiscountPage.HideAppliedToProductsBlock";
var hideAppliedToProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideAppliedToProductsBlockAttributeName, defaultValue: true);
const string hideAppliedToCategoriesBlockAttributeName = "DiscountPage.HideAppliedToCategoriesBlock";
var hideAppliedToCategoriesBlock = await genericAttributeService.GetAttributeAsync(customer, hideAppliedToCategoriesBlockAttributeName, defaultValue: true);
const string hideAppliedToManufacturersBlockAttributeName = "DiscountPage.HideAppliedToManufacturersBlock";
var hideAppliedToManufacturersBlock = await genericAttributeService.GetAttributeAsync(customer, hideAppliedToManufacturersBlockAttributeName, defaultValue: true);
}
@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "discount-advanced-mode" })
@await Html.PartialAsync("_CreateOrUpdate.Info", Model)
@await Html.PartialAsync("_CreateOrUpdate.Requirements", Model)
@await Html.PartialAsync("_CreateOrUpdate.AppliedToProducts", Model)
@await Html.PartialAsync("_CreateOrUpdate.AppliedToCategories", Model)
@await Html.PartialAsync("_CreateOrUpdate.AppliedToManufacturers", Model)
@if (Model.Id > 0)
{
@await Html.PartialAsync("_CreateOrUpdate.History", Model)
}
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.DiscountDetailsBlock, additionalData = Model })