Announcement

Collapse
No announcement yet.

SOLD OUT button not displaying

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

  • SOLD OUT button not displaying

    I suspect I may have something wrong either in a setting or in the PROD page code. The SOLD OUT is not taking over the ADD TO CART button when the inventory level hits zero.

    At the product level the Inventory is 0 - there are no attributes or variants

    The Out of Stock Message (Long) message is displaying

    The id="js-add-to-cart" is in place

    http://www.celebrate365.com/product/TG700GD.html


    What should I look for?
    Leslie Kirk
    Miva Merchant Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: leslie@lesliekirk.com
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

  • Hi Leslie,

    The "Sold Out" display is triggered when Miva applied the "disabled" tag to the add to cart button. I would check your inventory setting to make sure you are tracking out of stock.
    Matt Zimmermann
    Director of UI/UX Standards and Theme Development
    / Miva, Inc.

    Comment


    • I'm thinking that is do, but just in case here's the product level settings along with the Inventory settings:



      Leslie Kirk
      Miva Merchant Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: leslie@lesliekirk.com
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


      • Hi Leslie,

        I think the issue is that you have low stock and out of stock both set to 0.
        Matt Zimmermann
        Director of UI/UX Standards and Theme Development
        / Miva, Inc.

        Comment


        • I changed the low stock to 1. The button is still displaying "Add to Cart"
          Leslie Kirk
          Miva Merchant Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: leslie@lesliekirk.com
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


          • I have had to uncheck the Track Low Stock Level, setting it to 1 caused issues with the inventory level shown to the shopper (it was the inventory level minus 1). So I'm back to square one trying to figure out why the "Add to Cart" button is still being displayed when the inventory level is 0.
            Leslie Kirk
            Miva Merchant Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: leslie@lesliekirk.com
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


            • I'm wondering could the version of the Suivant ReadyTheme's javascript might be the reason this isn't working.

              In the version this site is using it's:

              Code:
               // ---- Update Button For "Out Of Stock" ---- //
              function outOfStock () {
              var button = $('#js-add-to-cart'),
              buttonText = button.val();
              
              if (button.is(':disabled') == true) {
              button.addClass('bg-gray').val('Sold Out');
              }
              else {
              button.removeClass('bg-gray').val(buttonText);
              };
              };
              outOfStock ();

              In the most recent version:

              Code:
               // ---- Update Button For "Out Of Stock" ---- //
              function outOfStock () {
              var button = $('#js-add-to-cart'),
              buttonText = button.data('value');  
              
              if (button.is(':disabled') == true) {
              if (button.is('button')) {
              button.addClass('disabled').text('Sold Out');
              }
              else {
              button.addClass('disabled').val('Sold Out');
              }
              }
              else {
              if (button.is('button')) {
              button.removeClass('disabled').text(buttonText);
              }
              else {
              button.removeClass('disabled').val(buttonText);
              }
              }
              }
              outOfStock();

              I'm going to try editing the file to see if this helps and will post my findings.
              Last edited by lesliekirk; 10-10-17, 06:08 AM.
              Leslie Kirk
              Miva Merchant Certified Developer
              Miva Merchant Specialist since 1997
              Previously of Webs Your Way
              (aka Leslie Nord leslienord)

              Email me: leslie@lesliekirk.com
              www.lesliekirk.com

              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

              Comment


              • Follow up - the state of the button changes but Sold Out is not appearing in the button.

                Leslie Kirk
                Miva Merchant Certified Developer
                Miva Merchant Specialist since 1997
                Previously of Webs Your Way
                (aka Leslie Nord leslienord)

                Email me: leslie@lesliekirk.com
                www.lesliekirk.com

                Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                Comment


                • Hi Leslie,

                  The original code should be all you need. However, it is still reliant on the button being set to "disabled" by Miva. If that is not happening, the button text will not change.
                  Matt Zimmermann
                  Director of UI/UX Standards and Theme Development
                  / Miva, Inc.

                  Comment


                  • Originally posted by Matt Zimmermann View Post
                    Hi Leslie,

                    The original code should be all you need. However, it is still reliant on the button being set to "disabled" by Miva. If that is not happening, the button text will not change.
                    Okay, so should I open a support ticket? Will support be able to look at this and figure it out?
                    Leslie Kirk
                    Miva Merchant Certified Developer
                    Miva Merchant Specialist since 1997
                    Previously of Webs Your Way
                    (aka Leslie Nord leslienord)

                    Email me: leslie@lesliekirk.com
                    www.lesliekirk.com

                    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                    Comment


                    • Originally posted by Matt Zimmermann View Post
                      Hi Leslie,

                      The "Sold Out" display is triggered when Miva applied the "disabled" tag to the add to cart button. I would check your inventory setting to make sure you are tracking out of stock.
                      Any way to turn that function off via the admin? On attribute items it makes customers think the item is not available before they've selected a size...
                      Best,
                      Pamela

                      Consultant / Developer / Trainer
                      Contributing Editor to Practical Ecommerce
                      Author of the Official Guides for Miva Merchant
                      pamelahazelton.com

                      Comment


                      • Originally posted by Pamela Hazelton View Post

                        Any way to turn that function off via the admin? On attribute items it makes customers think the item is not available before they've selected a size...
                        And as Pamela has mentioned to me, setting one of the attributes to the default, increases returns. (It's sort of like using radio buttons for the payment methods and having one pre-selected - the customer doesn't understand why the credit card keeps failing...)
                        Leslie Kirk
                        Miva Merchant Certified Developer
                        Miva Merchant Specialist since 1997
                        Previously of Webs Your Way
                        (aka Leslie Nord leslienord)

                        Email me: leslie@lesliekirk.com
                        www.lesliekirk.com

                        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                        Comment


                        • Originally posted by lesliekirk View Post

                          Okay, so should I open a support ticket? Will support be able to look at this and figure it out?
                          Never did get an answer on my issue - should I open a ticket? Yes, the inventory setting are tracking out of stock. Yes, the inventory level is at 0.
                          Leslie Kirk
                          Miva Merchant Certified Developer
                          Miva Merchant Specialist since 1997
                          Previously of Webs Your Way
                          (aka Leslie Nord leslienord)

                          Email me: leslie@lesliekirk.com
                          www.lesliekirk.com

                          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                          Comment


                          • Something is really, really squirrelly now. The Add to Cart button is not displaying:

                            http://www.celebrate365.com/product/TG1644.html

                            FYI - the Add to Cart is displaying on the Quick View (but the Sold Out is displaying as Add to Cart).
                            Last edited by lesliekirk; 10-20-17, 06:42 AM.
                            Leslie Kirk
                            Miva Merchant Certified Developer
                            Miva Merchant Specialist since 1997
                            Previously of Webs Your Way
                            (aka Leslie Nord leslienord)

                            Email me: leslie@lesliekirk.com
                            www.lesliekirk.com

                            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                            Comment


                            • Hi Leslie,

                              It would appear that the value attribute for your button is being removed, most like because of the version of out of stock function you are using. If you add data-value="Add to Cart", the display should come back.
                              Matt Zimmermann
                              Director of UI/UX Standards and Theme Development
                              / Miva, Inc.

                              Comment

                              Working...
                              X

                              This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

                              This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

                              Accept