• Resolved ingridurena

    (@ingridurena)


    Not sure which version update changed this (or if it is the Woocommerce core or the Woocommerce blocks themselves) but the mini cart used to display the amount AND a number in a bubble to show the number of items inside the cart.

    Like this:

    But now we no longer have the item count and it just shows the total price, like this:

    The examples above are running different plugin versions, which is why I noticed the discrepancy lies in the most recent version having removed that item count feature.

    Is there a way we can bring back the number bubble with the item count to the mini cart block???

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Nadir Seghir a11n

    (@assassinateur)

    Hey! I’m unable to reproduce this locally, can you tell me which version of WooCommerce Blocks (and if not, what version of WooCommerce) you’re running, and if possible, share a live link?

    Thread Starter ingridurena

    (@ingridurena)

    @assassinateur When you say you can’t replicate it, do you mean your mini cart still keeps showing the counter number?

    The shop that still displays the counter is running Woocommerce Version 8.0.1 and Woocommerce Blocks Version 10.8.3?while the shops that have Woocommerce Version 8.1.1? and Woocommerce Blocks Version 11.2.0 no longer display the cart item counter number (as shown in the screenshots).

    Live link examples:
    – This shop no longer shows the counter (running up-to-date plugin versions): https://northfolk.co/ and this shop has the same updated plugin versions and the counter went away too: https://blancsalvage.co/

    – This shop still has the counter (running on older plugin versions): https://rebeccarollinsinteriors.com/shop/

    Any help to get the item counter number back is appreciated ??

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @ingridurena

    I’ve thoroughly tested all your mentioned websites, particularly https://northfolk.co/ and https://blancsalvage.co/, and I’m happy to report that the mini cart is functioning perfectly. On northfolk.co, I noticed that the count number is displaying and incrementing as expected. Likewise, on blancsalvage.co, the total cost is accurately displayed and increases appropriately when a product is added to the cart.

    However, I would suggest trying to clear your browser and site cache and see if the issue persists. If it does, it would be a good idea to check if there’s a conflict with another plugin.

    If this doesn’t work, you enqueue the cart fragments script manually:

    function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
    add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );

    We recommend adding code snippets via a child theme or using a plugin such as Code Snippets.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter ingridurena

    (@ingridurena)

    Thank you! I see it live on Northfolk, both the item count and cost increments. @shameemreza

    A quick question: Will the snippet add the cost and the item count? (in case it’s ever needed)

    And does it only show on certain cart icons? Or all 3 mini cart icons display the item count?

    • This reply was modified 1 year, 1 month ago by ingridurena.
    Saif

    (@babylon1999)

    Hello @ingridurena,

    A quick question: Will the snippet add the cost and the item count? (in case it’s ever needed)

    The provided code snippet will specifically include certain cart-related scripts that your theme may rely on for its cart widget behavior. While these scripts were previously included by default, the team has made the decision to remove them for performance optimization. Consequently, you will need to add them manually if your theme hasn’t yet adapted to this change.

    And does it only show on certain cart icons? Or all 3 mini cart icons display the item count?

    If the theme supports it, all three icons should display the item count. :?)

    Hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mini Cart no longer shows item count’ is closed to new replies.