Webiant Logo Webiant Logo
  1. No results found.

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

RewardPoints.cshtml

@model RewardPointsSettingsModel

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

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

    const string hideEarningRewardPointsBlockAttributeName = "RewardPointsSettingsPage.HideEarningRewardPointsBlock";
    var hideEarningRewardPointsBlock = await genericAttributeService.GetAttributeAsync(customer, hideEarningRewardPointsBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.RewardPointsSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_RewardPoints.Common", Model) @await Html.PartialAsync("_RewardPoints.EarningRewardPoints", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.RewardPointsSettingsDetailsBlock, additionalData = Model })