How to display Sub-total along with quantity in Header v.4.40

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 ano atrás
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?
1 ano atrás
the solution is about editing AjaxCart.init (false, '.cart-qty', '.header-links .wishlist-qty', '# flyout-cart', localized_data);
how to edit?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.