Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 220 Views
  • 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 Offline
    M Offline
    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 Offline
      arminunruhA Offline
      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 Offline
        M Offline
        mp
        wrote on last edited by
        #3

        wow! this is great! thank you!

        L 1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          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 Offline
            L Offline
            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 Offline
              A Offline
              alasdair17
              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 Offline
                L Offline
                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 Offline
                  A Offline
                  alasdair17
                  wrote on last edited by
                  #8

                  @lortnok No problem!

                  1 Reply Last reply
                  1
                  • arminunruhA Offline
                    arminunruhA Offline
                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    I also code custom websites or custom Lay features.
                    šŸ’æ Email me here: šŸ’æ
                    info@laytheme.com

                    Before you post:
                    1. When using a WordPress Cache plugin, disable it or clear your cache.
                    2. Update Lay Theme and all Lay Theme Addons
                    3. Disable all Plugins
                    4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                    This often solves issues you might run into

                    When you post:
                    1. Post a link to where the problem is
                    2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                    3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                    Online Users
                    D
                    dnlbrv
                    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