Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After clicking on the add to cart , cart is not updating its number .everything is working fine. #7

Open
maroom1 opened this issue Jul 8, 2015 · 3 comments

Comments

@maroom1
Copy link

maroom1 commented Jul 8, 2015

we have to refresh inorder to see the updated number.

@fetchthedev
Copy link

The Mobilia v3.4 theme does not show the updated count.item_count until the page is refreshed either. This may be because the cart link within the theme.liquid file contains...
{% if cart.item_count > 0 %}<span class="cart_count"> ({{ cart.item_count }})</span></a>{% endif %}

If this is the problem, we cannot see items being added to the cart unless the theme.liquid is reloaded again and now recognizes that items have been added, displaying the actual cart count.

Could someone suggest a fix for future reference? Simply removing the if cart.item_count is quite unappealing since empty carts will always say zero. This situation may be theme dependent but I'd imagine others will have a similar issue like maroom1 and me. Thanks.

@HandHugs
Copy link

HandHugs commented Aug 29, 2016

I am having the same issue - i added the parameters to update

Shopify.AjaxifyCart.init({
      cartCountSelector: '.cart_count',
      cartTotalSelector: '.mm-counter'

    });

but not having any luck with either. Any help?

@imkirar
Copy link

imkirar commented Nov 2, 2020

replace .size() with .length in ajax-cart.liquid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants