Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Shop / WooCommerce
  3. Hide Empty Cart

Hide Empty Cart

Scheduled Pinned Locked Moved Shop / WooCommerce
9 Posts 4 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    mp
    wrote on last edited by
    #1

    Hi everybody,

    i've been googling and trying different things, but couldn't get this to work.

    Can I hide the cart menu-item when the cart is empty? As with many people, the page i am working on is not mainly a shop, so as long as there is nothing in the cart it does not need to be visible.

    This feels like it should be a woocommerce option, but i couldn't find anything useful for this.

    Thank you!

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      hey this is a great idea

      with the next update, there will be a html class for the cart menu item that indicates if the cart is empty

      so you'll be able to do:

      .laycart-empty{
      display:none;
      }
      
      1 Reply Last reply
      0
      • M
        M
        mp
        wrote on last edited by
        #3

        wow! this is great! thank you!

        L 1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          yeee i think the update will be available tomorrow!

          1 Reply Last reply
          0
          • M mp

            wow! this is great! thank you!

            L
            L
            lortnok
            wrote on last edited by lortnok
            #5

            @mp any update on this?

            Is this implemented already? I don't see the point of forcing this solution over the already existing one that came with the side cart plugin, so confusing.. I don't mind your solution it looks good, but I think the option to hide the cart when it is empty is really essential. It is obvious that there is a need for this feature since Laytheme started as a portfolio website template so quite likely that there are users who want a small scale eshop in combination with a portfolio website.

            Hope this can be fixed soon, thank you!

            A 1 Reply Last reply
            0
            • L lortnok

              @mp any update on this?

              Is this implemented already? I don't see the point of forcing this solution over the already existing one that came with the side cart plugin, so confusing.. I don't mind your solution it looks good, but I think the option to hide the cart when it is empty is really essential. It is obvious that there is a need for this feature since Laytheme started as a portfolio website template so quite likely that there are users who want a small scale eshop in combination with a portfolio website.

              Hope this can be fixed soon, thank you!

              A
              A
              alasdair17
              Global Moderator
              wrote on last edited by
              #6

              @lortnok It is available, if you go to, Customise > Woocommerce > Cart Menu Point you can hide it.

              L 1 Reply Last reply
              1
              • A alasdair17

                @lortnok It is available, if you go to, Customise > Woocommerce > Cart Menu Point you can hide it.

                L
                L
                lortnok
                wrote on last edited by
                #7

                @alasdair17 I am really happy to hear that, thank you very much!

                A 1 Reply Last reply
                0
                • L lortnok

                  @alasdair17 I am really happy to hear that, thank you very much!

                  A
                  A
                  alasdair17
                  Global Moderator
                  wrote on last edited by
                  #8

                  @lortnok No problem!

                  1 Reply Last reply
                  1
                  • arminunruhA
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    hey @lortnok
                    its about hiding the menu point, not the cart itself

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    Online Users
                    Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                    laytheme.com
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Search