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. Sidecart floating button not showing on mobile

Sidecart floating button not showing on mobile

Scheduled Pinned Locked Moved Shop / WooCommerce
4 Posts 2 Posters 581 Views 2 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
    maxkesslau
    wrote on last edited by
    #1

    Hey folx,
    for some reason the sidecart floating button does not appear on mobile. I checked every setting and my custom css does not move or disable the button. Any ideas how I could make it appear at the bottom on the screen? The google privacy thingy does not cover it, already checked for that.

    Website:
    https://waves-openair.de/

    Thanks in advance

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

      so if i add a tshirt to the cart here:
      https://waves-openair.de/produkt/waves-open-air-liquid-chrome-black/

      i dont even see a sidecart button show up
      only if i refresh the website after i added sth to the cart

      could be because u have a lot of errors in the javascript console:
      Screenshot 2024-04-18 at 20.25.58.png

      i would check your custom code.

      ok this cart button is not meant to be used with lay theme.
      instead, u're meant to have a cart icon in ur mobile menu or a cart menu point

      for the mobile version, the sidecart plugin just takes the same pixel width that it uses for its desktop version.

      this is not a good idea i think, thats why i made the sidecart just 100% wide on mobile.
      this needed some css from my side, which actually pushes away the button u talk about.

      so because i thought i was so smart i changed that and now we got the salad xD ;)))

      your button is hidden by default with lay theme and u made it show up using custom css. nice

      now we'll need a whole bunch of more css to undo the custom lay theme styling of the width of the sidecart for mobile and its animations:

      /* show the icon. u have this css already, don't copy it. its just for other people to see how it works */
      .xoo-wsc-basket {
      	display: block !important;
      }
      /* replace 323px; with the width you actually set in the plugin settings, for u its 600 i think, that may be too wide!! */
      .xoo-wsc-container,
      .xoo-wsc-slider {
      	width: 100% !important;
      	max-width: 323px !important;
      }
      .xoo-wsc-container,
      .xoo-wsc-slider {
          right: -323px !important;
          transform: none !important;
      }
      .xoo-wsc-cart-active .xoo-wsc-container,
      .xoo-wsc-slider-active .xoo-wsc-slider {
      	transform: none !important;
      }
      .xoo-wsc-cart-active .xoo-wsc-container, .xoo-wsc-slider-active .xoo-wsc-slider{
          right: 0!important;
      }
      

      and i think its important u get all ur js errors sorted out

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

        if this, but i think it should, i tested it.

        if this doesn't work can u rather just use the normal way:

        https://laytheme.com/documentation/shop-setup.html

        in this tutorial it says how to setup a cart menupoint. theres even the option in the customizer to have it hidden now until someone adds sth to the cart

        1 Reply Last reply
        0
        • M
          M
          maxkesslau
          wrote on last edited by
          #4

          Damn, thanks armin! Really have to go and clean up the js mess I made, the scope of the site changed like 6 times so I had to leave a lot of spaghetticode in. I'm certain I can make it work with your input, thanks again for saving my ass.

          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
          M
          michael_vvc
          C
          craigfeldspar
          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