Announcement

Collapse
No announcement yet.

Add To Cart Button Not Adding Items (just spinning circle)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add To Cart Button Not Adding Items (just spinning circle)

    Ok, I am in freak mode right now...

    The Add To Cart Button was NOT adding items to my cart.

    instead, it just gave me dark spinning arrows that kept spinning and spinning.

    I tried adding some products and testing them out, and when I hit the add to cart button, they wouldn't add.

    So I tried out some my other products that have been online forever and the first couple of times I tried the add to cart wouldn't work, either.

    http://www.siamese-dream.com/PrsblfdJpn.html

    Also, a new product that I added was listed as sold out.

    No I tired it out again and it seems like it might be back to normal.

    Was Miva's server having a hiccup? (I am hosted by Miva).

    Thanks in advance.
    Mark Romero
    ~~~~~~~~

    #2
    Re: Add To Cart Button Not Adding Items (just spinning circle)

    Could you have been on the product page securely before? That framework is currently not setup to work on both secure and non secure, but that can easily be changed
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Add To Cart Button Not Adding Items (just spinning circle)

      I had the same problem at a couple of stores. I did some customization, and the Ajax add-to-cart stopped working, and I really don't know why. For what it's worth, here's a work-around. The Add-to-cart button HTML looks like this:

      <input type="submit" value="Add to Cart" id="js-add-to-cart" class="button button-block button-square uppercase add-to-cart bg-yellow bold" />

      If you remove the id="js-add-to-cart" part, it will function correctly without Ajax, i.e. by refreshing the page when customers add items to their cart. This is for stores running the Suivant ReadyTheme. I'm not sure if the code is the same in other stores, but it's probably pretty close.

      I'd like to see a "real" fix myself. But if you're in a hurry to get your store working again, you can try this.

      HTH --
      Last edited by Kent Multer; 12-11-15, 01:43 PM.
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        Re: Add To Cart Button Not Adding Items (just spinning circle)

        Brennan, could you provide the solution so the Ajax script works also in secure mode?
        Andreas Toman
        PCINET, LLC

        Miva Merchant Design, Development, Integration & Support
        We built over 200 Miva Merchant stores!
        Miva shopping cart design & integration service and see our Portfolio!


        e-mail: [email protected]
        web: www.pcinet.com
        LinkedIn: Andreas Toman
        phone: (786) 250-2056 (Miami, FL)

        Comment


          #5
          Re: Add To Cart Button Not Adding Items (just spinning circle)

          Is anyone checking the Console log in their browser when this occurs? There could be jQuery conflicts or javascript errors as well getting involved.
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment


            #6
            Re: Add To Cart Button Not Adding Items (just spinning circle)

            @ Kent:

            Thanks for the tip. I like the AJAX functionality, so hopefully Brennan will chime in with a fix. But in the meantime, I might go with your solution.

            Again, thanks for passing along this tip.
            Mark Romero
            ~~~~~~~~

            Comment


              #7
              Re: Add To Cart Button Not Adding Items (just spinning circle)

              That framework is currently not setup to work on both secure and non secure, but that can easily be changed
              This is confusing to me.

              You mean if someone logs into their account, then they can't add an item to their basket?

              Likewise, if someone starts the checkout process, then decides they want to go back and add another item, they can't use the add to cart button?

              Thanks in advance.
              Mark Romero
              ~~~~~~~~

              Comment


                #8
                Re: Add To Cart Button Not Adding Items (just spinning circle)

                @ Bruce:

                This is the error message I get in the console when trying to add something to the basket when it is in secure mode:

                Blocked loading mixed active content "http://www.siamese-dream.com/mm5/merchant.mvc?Session_ID=55859371cac4d5c0e765540e33 42632c&Screen=BASK&v=463351"

                vendor.min.js:2:0
                ~~~~

                By the way, I am ALSO getting this error FIRST (when the page first loads) when logged in using https:

                Blocked loading mixed active content "http://assets.pinterest.com/js/pinit.js"

                PrsblfdJpn.html
                You can see that error if you try to log in / add to cart here:

                https://www.siamese-dream.com/PrsblfdJpn.html
                Mark Romero
                ~~~~~~~~

                Comment


                  #9
                  I was also having this (original, spinning wheel) problem, so I followed Kent's fix, but it would be nice to have the AJAX feature, if possible. Is it possible script that refreshes the page after an item is added to the cart?

                  Comment


                    #10
                    The problem may very well be the same as Mark's. I.e., the lack of proper SSL and URL formation is blocking the ajax script. Is this a dev site?
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment


                      #11
                      No, it's a running site, hosted with Miva.

                      BTW, it's only intermittent. I need to explain in more detail, but I need to get orders completed first.

                      Comment


                        #12
                        Then its usually a problem with Cookie Settings in Miva or you are linking to the basket with different URLs. For example, to your browser "thisdomain.com" and "www.thisdomain.com" are 2 different web sites and two separate sets of cookies. I'd have miva support help you check settings and links.
                        Bruce Golub
                        Phosphor Media - "Your Success is our Business"

                        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                        phosphormedia.com

                        Comment

                        Working...
                        X