Site logo

[Support request] WooCommerce cart at the end of secondary menu

Home Forums Support [Support request] WooCommerce cart at the end of secondary menu

Home Forums Support WooCommerce cart at the end of secondary menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #581122
    George

    I can see an option in the Customizer to remove the WooCommerce cart from the primary menu but what if I want to just move it at the end of the secondary menu instead? Also, is there a way to display amount next to the cart even if it’s zero?

    #581152
    Leo
    Staff
    Customer Support

    Hi there,

    This should help with the first question:
    https://generatepress.com/forums/topic/suggestion-woocommerce-cart-menu-icon-location/#post-463529

    Checking with Tom on displaying 0 🙂

    #581195
    George

    Ok thanks Leo, the first one didn’t work by the way, no cart is visible on the secondary menu.

    #581335
    Tom
    Lead Developer
    Lead Developer

    How did you add that code? It should definitely work. Can you add your URL to the original post?

    #581603
    George

    I am adding the code through the snippets plugin. It seems to be creating a space for it but the icon is invisible. Updated the URL in original post, it’s a fresh GP install.

    #581847
    Tom
    Lead Developer
    Lead Developer

    Can you try adding this CSS?:

    .secondary-navigation a.cart-contents:before {
    	content: "\f07a";
    	display: inline-block;
        font-family: "GP Premium";
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    #581858
    George

    Yeah that did it! Maybe in the next vesion could be an option to include the cart in other menus apart from the main one? Also Tom, do you know of a way to include price even if it’s zero?

    #582253
    Tom
    Lead Developer
    Lead Developer

    We’ll likely stick with the filter for now, but I’ll add that CSS into the plugin.

    As for the zero, try this CSS:

    .wc-menu-item .amount:empty:after {
        content: " $0.00";
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.