NOP Commerce 3.0 - Shopping Cart Totals in header link not updating on adding to cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi,

I have a problem with NOP 3.0. Header shopping cart total is not updating when i add item to cart on my test site.
However,  total in mini shopping cart is updated.

However when I refresh the page totals is fine.

I'm using default code for header links :

<div class="header-links-wrapper">
        @Html.Action("HeaderLinks", "Common")
        @Html.Action("FlyoutShoppingCart", "ShoppingCart")
  </div>

Please tell me which controller i should check to solve this problem?

Thank you.
10 years ago
I just found the cause, it was because i changed the attribute class name on file HeaderLink.chtml.
from:
<div class="header-links">

to
<div class="header-menu-link">.

if i want keep this change, which file i should modify to make updating total product on header link working?
i guest it should be js script file.

thank you.
*sorry for my english.
10 years ago
yes.. finally i found it.
i need also to modify that class name when initiate AjaxCart at _Root.chtml.

   <div class="master-wrapper-content">
        <script type="text/javascript">
            AjaxCart.init(false, '.header-menu-link .cart-qty', '.header-menu-link .wishlist-qty', '#flyout-cart');
        </script>

Sorry to bother all of you with this silly thing. thank you.
please close this topic.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.