Number zero in wishlist and shopping cart

This topic has 6 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler

  • Avatar: Ton
    Ton
    Participant
    September 11, 2017 at 08:23

    Hi,

    Perhaps is it a setting I overlooked but when there is nothing in the wishlist or in the shoppingcart the icons in the header shows a zero. And I think it is nicer when there is nothing you do not see a number.

    Is that possible?

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 11, 2017 at 12:42

    Hello,

    Is your problem solved http://prntscr.com/gjrawd ?
    To hide number you may add this code in Custom css:

    .fixed-header .navbar-header .et-wishlist-widget .wishlist-count, .header-wrapper .et-wishlist-widget .wishlist-count {
        display: none;
    }

    Regards

    Avatar: Ton
    Ton
    Participant
    September 11, 2017 at 13:06

    Sorry,

    Perhaps I was not clear enough.
    I want that only the number zero is not to be seen when nothing is added.
    So only the icon of the shopping cart and the heart of the wishlist.
    As well the shopping cart as the heart remains empty.
    But when something is added the number appears.
    Like the e-mail icon on your phone. If you do not have an email than there is no number to be seen.

    Am Im clear?

    Thanks Ton.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 11, 2017 at 13:30

    In this case, you need to edit etheme_wishlist_widget function (framework/woo.php file) and change http://prntscr.com/gjrrq0 to http://prntscr.com/gjrs23

    <?php if ($wl_count > 0) : ?>
     <span class="wishlist-count"><?php echo (int) $wl_count; ?></span>
    <?php endif; ?>

    also add this code in custom css:

    .shopping-container .shopping-cart-widget .badge-number.number-value-0 {
         display: none; 
    }
    

    It’s recommended to make such changes via child theme to prevent losing your customizations after the next theme update.

    Regards

    Avatar: Ton
    Ton
    Participant
    September 11, 2017 at 16:03

    OK Rose,

    Thank you again,

    Hopefully it was not too much going into details, but knowing my client she would ask about it.

    Have a nice day, Ton.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 11, 2017 at 16:08

    You’re welcome!
    Feel free to ask if you have any other questions.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Number zero in wishlist and shopping cart’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.