3

I am using Ultimo theme in the site and few changes to the My Wishlist to wishlist and added one icon with link and also changed 1 item/items to 1% from csv only but suddenly counter stopped working and it doesn't show in the header section.

Below is my code in link.phtml file :

<li class="link wishlist" data-bind="scope: 'wishlist'">
 <span class="ic ic-heart icon-center"></span>
    <span data-bind="scope: 'wishlist'" class="link wishlist">
      <a href="<?php echo $this->getUrl('wishlist') ?>">
         <?php echo __('My Wishlist') ?>
         <!-- ko if: wishlist().counter --><span data-bind="text: wishlist().counter" class="counter qty"></span><!-- /ko -->
      </a>
</li>
  • Have you run deploy command , php bin/magento setup:static-content:deploy and remove var folder from root – Rakesh Jesadiya Oct 5 '16 at 6:42
1

There was an issue with the cache only.It can work well with cache enabled. Thanks

  • With cache disabled, the count was not working properly but after clear/flush cache it again started working again.Changes in the code are working fine. – Keith Feb 15 '17 at 7:01
  • yes, it is always work with cache enabled, because basically it's working with cookies and cache key to get this counter,this answer will sure help to others so +1 – liyakat Feb 15 '17 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.