Announcement

Collapse
No announcement yet.

Inventory Variants Tracking - button doesn't revert to Add to Cart

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

    Inventory Variants Tracking - button doesn't revert to Add to Cart

    I'm using for a client the Optics RT and have a problem with the add to cart button not reverting to Add to Cart when a inventory variant is available.

    You can check it here

    http://dev.thriftyspecs.com/tube-reader-black.html

    Strength 1.0 is available but 1.5 not. When choosing 1.5 the button turns gray and displays Sold Out. When choosing 1.0 after that it still displays Sold Out but turns blue.

    Anybody having the same issue and a solution for this? BTW When I refresh the page the button displays again Add to Cart so it looks like a JavaScript doesn't get executed.
    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)

    #2
    Re: Inventory Variants Tracking - button doesn't revert to Add to Cart

    Looks like it may be a bug. We'll take a look and get you a solution here soon.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Inventory Variants Tracking - button doesn't revert to Add to Cart

      Hi Andres,

      We have noticed this crop up from time to time. The easy solution is to add a new attribute to the input:
      Code:
      data-value="Add to Cart"
      Then, in your scripts. js file around line 254 in the outOfStock function, change:
      Code:
      button.val()
      to:
      Code:
      button.data('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


        #4
        Re: Inventory Variants Tracking - button doesn't revert to Add to Cart

        Thanks, going to try it now.
        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: Inventory Variants Tracking - button doesn't revert to Add to Cart

          All fixed! Thanks for the swift reply.

          fyi for anybody having the same issue add
          data-value="Add to Cart"
          to input submit.

          <input type="submit" value="Add to Cart" data-value="Add to Cart" id="js-add-to-cart" class="button button-medium uppercase add-to-cart bg-aqua" />
          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


            #6
            Has this fix been integrated into all the current ReadyThemes applicable?
            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
              Yes this is fixed in all the latest themes
              Brennan Heyde
              VP Product
              Miva, Inc.
              [email protected]
              https://www.miva.com

              Comment

              Working...
              X