How price Sub-total display in Header 4.40
1. create component OrderTotalsb from OrderTotals
2.Create View Component
@model OrderTotalsModel
@inject Nop.Core.IWebHelper webHelper
<div class="total-info">
<table class="cart-total">
<tbody>
@await Component.InvokeAsync("Widget", new { widgetZone = PublicWidgetZones.HeaderLinksBefore })
<tr class="order-subtotal">
<td class="cart-total-right">
<span class="cart-qty">@Model.Subtotal</span>
</td>
</tr>
@await Component.InvokeAsync("Widget", new { widgetZone = PublicWidgetZones.HeaderLinksAfter })
3.Put into header
@await Component.InvokeAsync("OrderTotalsb", new { isEditable = true })
4.but insert me in @Model.Subtotal value add 1 after add product into cart, not insert me price ,where i make a mistake?