Announcement

Collapse
No announcement yet.

Wrong state of Add2basket button?

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

    Wrong state of Add2basket button?

    This is a different question than another question I recently posted. This is more of a how to.

    Iron and Wool Readytheme:
    I have attributes/variants at various states of inventory qty and tracking. The attribute(s) -- defined are radio buttons and are Required. But of the 4 options, there isn't a default option set. Result when loading this product is the add2basket button state is "Sold Out." I think this is the default state because no option is selected. As an aside, With that as the assumption, the button state doesn't make sense. The state should be Add 2 Basket because the "Sold Out" state of inventory isn't known yet. I was thinking I should use some custom coding in the button code definition. What is the suggestion for making this button the desired Add 2 Basket state?

    Thanks,

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Hi Scott,

    You could remove the outOfStock (); function in scripts.js, and reference to it, to help correct the issue.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      There appears to be a side affect. This worked great for the button states. The side affect appears to be that products can't be added to the basket. Not sure what's happening there.

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        Hi Scott,

        That is a function of Attribute Machine. When tracking inventory on variants, and no attributes are selected, the button is disabled until a valid selection has been made.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          Thanks Matt.

          I should have been more clear on where the side affect is being seen, which products that are tracked without variants. I am also suspecting there is another change from out of the box RT that I don't know about yet.

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment


            #6
            A question Matt. Is the default text on the button when no attributes are selected suppose to be "Sold Out?" The button is disabled which is the desired state.

            This could be considered an incorrect information given to the viewer of the product. Would you suggest to change the text in the outofStock function?

            Scott

            BTW: I did try changing this in the function but wasn't correct.
            Last edited by ids; 08-22-17, 09:30 AM.
            Need to offer Shipping Insurance?
            Interactive Design Solutions https://www.myids.net
            MivaMerchant Business Partner | Certified MivaMerchant Web Developer
            Competitive Rates, Custom Modules and Integrations, Store Integration
            AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
            My T-shirt Collection is mostly MivaCon T-shirts!!

            Comment


              #7
              Hi Scott,

              Without using the outOfStock function, the text should be whatever you have set for the button, usually Add To Cart. The outOfStock function would read if the button was set to disabled, by Attribute Machine, and change the text value.
              Matt Zimmermann

              Miva Web Developer
              Alchemy Web Development
              https://www.alchemywebdev.com
              Site Development - Maintenance - Consultation

              Miva Certified Developer
              Miva Professional Developer

              https://www.dev4web.net | Twitter

              Comment


                #8
                OK, that helps I think. Any ideas why a disabled button would be read by the attribute machine on a product that doesn't have attributes/variants?
                Need to offer Shipping Insurance?
                Interactive Design Solutions https://www.myids.net
                MivaMerchant Business Partner | Certified MivaMerchant Web Developer
                Competitive Rates, Custom Modules and Integrations, Store Integration
                AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
                My T-shirt Collection is mostly MivaCon T-shirts!!

                Comment


                  #9
                  Originally posted by ids View Post
                  OK, that helps I think. Any ideas why a disabled button would be read by the attribute machine on a product that doesn't have attributes/variants?
                  Is there, by any chance, that Inventory has been turned on at the product level? Just a wag...
                  Leslie Kirk
                  Miva Certified Developer
                  Miva Merchant Specialist since 1997
                  Previously of Webs Your Way
                  (aka Leslie Nord leslienord)

                  Email me: [email protected]
                  www.lesliekirk.com

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

                  Comment


                    #10
                    No, but It's a good wag. And that has been part of the test procedure style iteration.

                    Scott
                    Need to offer Shipping Insurance?
                    Interactive Design Solutions https://www.myids.net
                    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
                    Competitive Rates, Custom Modules and Integrations, Store Integration
                    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
                    My T-shirt Collection is mostly MivaCon T-shirts!!

                    Comment

                    Working...
                    X