4

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>
1
  • Have you run deploy command , php bin/magento setup:static-content:deploy and remove var folder from root Oct 5, 2016 at 6:42

1 Answer 1

1

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

2
  • 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.
    – Laty
    Feb 15, 2017 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, 2017 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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