[Support request] Show cart items in navigation

Home Forums Support [Support request] Show cart items in navigation

Home Forums Support Show cart items in navigation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1014199
    Rolf

    Hi GP Support.
    My site is running on GP and Elementor with WooCommerce.
    The navigation is rendered by GP.
    Is it possible to show the shopping cart in the navigation with number of items in the cart (only if items are in the cart?

    thank you!
    -rolf

    #1014294
    David
    Staff
    Customer Support

    Hi there,

    if you use the GP Woocommerce Cart icon – which can be enabled in Appearance > Layout > Woocommerce and set to display Product count then you can use this CSS to hide it when its empty:

    .main-navigation .menu>li.wc-menu-item:not(.has-items) {
    	display: none;
    }
    #1016373
    Rolf

    Hi, thanks!
    I was able to activate the Cart Icon, but the CSS to hide the card icon when it is empty does not work.
    Can you take a look if I added it the right way (via custom CSS?).

    thanks
    rolf

    #1016422
    David
    Staff
    Customer Support

    I updated the CSS above – try that.

    #1016454
    Rolf

    thanks – works!

    #1016466
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.