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. Mobile cart icon quantity error

Mobile cart icon quantity error

Scheduled Pinned Locked Moved Shop / WooCommerce
15 Posts 2 Posters 214 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.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on last edited by
    #6

    hey i probably have not seen your post sorry for not answering earlier

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

      when im here:
      https://rackhackers.com/product/cannier-set/

      and click "add to cart"
      the cart value goes up to 1 for me:

      Screenshot 2024-02-22 at 14.04.33.png

      but when i go to another page, like this one, afterwards:
      https://rackhackers.com/plastic-can-bike-bags-benefits/

      then it is 0 again

      but when i go to the frontpage, https://rackhackers.com/
      it is 1 again

      mmh, it used to work properly maybe its a new issue yes

      do you have the sidecart plugin installed and activated in "plugins"?
      if yes, can you disable it?

      can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andris
        wrote on last edited by
        #8

        I don't have sidecart plugin.

        I sent the e-mail with the access.

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

          hey there!
          so i did two things:
          i disabled the caching plugin and i updated woocommerce

          now it works correctly for me again.
          can you check if it works for you too?

          i have looked into my code and so far i couldn't find an error in it.
          i seem to be using the standard way of getting the cart's product count.

          i think i was able to reproduce this issue on my own wordpress/woocommerce installation, however after updating my woocommerce version that issue was gone

          if it doesn't work for you:
          can you disable your plugins one-by-one (except lay carousel and woocommerce) and every time, see if it works

          you use like 3 or 5 woocommerce related plugins, maybe there is an issue with intercompatibility with one of them

          this is always sth you can try, as noted in the box to the right "disable all plugins":

          Screenshot 2024-02-27 at 14.54.29.png

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andris
            wrote on last edited by
            #10

            Hi!
            It worked as you left it, but you worked on it with the Cart Icon Mobile set to always hide.

            The index on the Cart Icon Mobile still shows incorrect values. It doesn't update when new items are added to the cart, and also, pressing "back" in the browser makes the index show previous values sometimes.

            I tried with all the woocommerce-related plugins deactivated, and the cache plugin deactivated, and the problem persists.

            This whole problem with the indexes started when I discovered that the Cart Icon Mobile got options with an update, and I set to show it. So I think it originates in Cart Icon Mobile, and the Cart Menu Point indexes were affected by it after some time. Now that you updated the woocommerce plugin with the cache plugin deactivated, the Cart Menu Point indexes got back to normal, but the initial problem of the Cart Icon Mobile index remained.

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

              Cart Icon Mobile got options with an update, and I set to show it

              so you're saying the cart icon wasn't shown before an update on mobile?

              ok will look further into this

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

                Screenshot 2024-03-03 at 11.00.20.png

                i think the cart icon was always here no

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andris
                  wrote on last edited by andris
                  #13

                  Yes, it was always there, and I think it used work.

                  Then a few weeks ago I discovered that the icon image itself doesn't show. There was only a gray X next to the index number. On desktop, in the mobile page simulator inside "Customize" it was showing the icon, and I could not make it appear, so I decided to hide the whole thing.
                  Not having the 20Nov update at that moment, the icon had no options, so I hid it with a line of CSS.

                  After that I updated Laytheme, and I saw the options for the Cart Icon Mobile. I deleted the CSS line and set it to always show in the options, to see if the problem of icon image not showing has been fixed or not.

                  The icon image was showing properly, but the index started showing incorrect values.

                  This was my timeline of discovering the issues, but they might have been there before, without me noticing.

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

                    sure! i sent you an email requesting your FTP server login details, i will need to debug this more

                    sorry this is taking so long, but finding out why this happens is a little difficult mh

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

                      ok i think i fixed it!

                      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
                      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