-
45
-
243
-
5/4/2017
-
Iran (Islamic Republic of)
How can show the remaining reward points in header?
-
981
-
8028
-
2/10/2017
-
India
Hello,
Yes it is possible without customization in c# code.
From work context you can get current customer than through that customer you can get reward point.
You just display dynamic label in header.
Everything done in view page.
-
45
-
243
-
5/4/2017
-
Iran (Islamic Republic of)
Actually there isn't any reward point in "current customer".
-
45
-
243
-
5/4/2017
-
Iran (Islamic Republic of)
Dear Sohel,
Thanks.
He solved the problem:
@using Nop.Services.Orders
@using Nop.Core
@inject IRewardPointService rewardPointService
@inject IWorkContext workContext
@inject IStoreContext storeContext
@{
var rewardPoints = rewardPointService.GetRewardPointsBalance(workContext.CurrentCustomer.Id, storeContext.CurrentStore.Id);
}
in Nop.Web\Views\Shared\Components\HeaderLinks\default.cshtml
Thanks again sohel.
Best Regards.