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 202 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.
  • A Offline
    A Offline
    andris
    wrote on Feb 20, 2024, 10:24 PM last edited by
    #5

    If I am the only one having this problem, would there be a command I could use to force the indexes to update with every page load?

    1 Reply Last reply
    0
    • A Online
      A Online
      arminunruh
      Global Moderator
      wrote on Feb 22, 2024, 12:58 PM last edited by
      #6

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

      1 Reply Last reply
      0
      • A Online
        A Online
        arminunruh
        Global Moderator
        wrote on Feb 22, 2024, 1:08 PM 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 Feb 23, 2024, 11:14 AM last edited by
          #8

          I don't have sidecart plugin.

          I sent the e-mail with the access.

          1 Reply Last reply
          0
          • A Online
            A Online
            arminunruh
            Global Moderator
            wrote on Feb 27, 2024, 1:54 PM 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 Feb 28, 2024, 6:31 PM 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
              • A Online
                A Online
                arminunruh
                Global Moderator
                wrote on Mar 3, 2024, 9:59 AM 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
                • A Online
                  A Online
                  arminunruh
                  Global Moderator
                  wrote on Mar 3, 2024, 10:00 AM 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 Mar 4, 2024, 3:53 PM last edited by andris Mar 4, 2024, 10:55 AM
                    #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
                    • A Online
                      A Online
                      arminunruh
                      Global Moderator
                      wrote on Mar 5, 2024, 8:49 AM 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
                      • A Online
                        A Online
                        arminunruh
                        Global Moderator
                        wrote on Mar 11, 2024, 7:43 AM 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

                        14/15

                        Mar 5, 2024, 8:49 AM


                        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
                        M
                        Marcal
                        9 minutes ago
                        C
                        craigfeldspar
                        9 minutes ago
                        A
                        arminunruh
                        12 minutes ago
                        M
                        maxseml
                        12 minutes ago
                        M
                        Markus
                        19 minutes ago
                        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.
                        14 out of 15
                        • First post
                          14/15
                          Last post
                        0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Search