Announcement

Collapse
No announcement yet.

Nasty Bug in Order Edit Screen

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

    Nasty Bug in Order Edit Screen

    I don't know if this is specific to 5.5 or if it is something that has been around since 5.0.

    On the order edit screen I have three tabs: Customer Information, Order Information, Check Payment. I go to the check payment tab. I click Update. I often have to click it more than once to see the error. I see it about half the time. I get a javascript popup that says "Please specify a valid number". When I click OK, it jumps to the Order Information tab and the focus is set on the first editable order charge field. It doesn't matter what is in the order or what the order charges are, it is always the first. When I view the source on the check payment update screen, the values are correctly listed as hidden inputs. So the bug is that the built in Order Information module is interpreting the order charge amount as blank or text characters instead of a number. The odd part is it only happens half the time on this store. I tested another store and I cannot get this bug to show no matter how many times I try. The store with the bug was an early version 5.x (now 5.5) which has gone through all updates without any displayed errors. See hidden form inputs below as they all appear to be correct.

    Miva or others: Can you duplicate this bug? You might need to try more than one store to find the bug.

    Code:
    <input type="hidden" name="Order_Tax" value="">
    <input type="hidden" name="Order_Shipping" value="">
    <input type="hidden" name="OrderCharge_Count" value="6">
    
    <input type="hidden" name="Order_Charge[1]:AMOUNT" value="1.000">
    <input type="hidden" name="Order_Charge[1]:CHARGE_ID" value="16359">
    <input type="hidden" name="Order_Charge[1]:DESCRIP" value="Packaging">
    <input type="hidden" name="Order_Charge[1]:DISP_AMT" value="1.000">
    <input type="hidden" name="Order_Charge[1]:MODULE_ID" value="133">
    <input type="hidden" name="Order_Charge[1]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[1]:TAX_EXEMPT" value="1">
    <input type="hidden" name="Order_Charge[1]:TYPE" value="Packaging">
    
    <input type="hidden" name="Order_Charge[2]:AMOUNT" value="1.500">
    <input type="hidden" name="Order_Charge[2]:CHARGE_ID" value="16360">
    <input type="hidden" name="Order_Charge[2]:DESCRIP" value="Insurance">
    <input type="hidden" name="Order_Charge[2]:DISP_AMT" value="1.500">
    <input type="hidden" name="Order_Charge[2]:MODULE_ID" value="205">
    <input type="hidden" name="Order_Charge[2]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[2]:TAX_EXEMPT" value="1">
    <input type="hidden" name="Order_Charge[2]:TYPE" value="Insurance">
    
    <input type="hidden" name="Order_Charge[3]:AMOUNT" value="0.000">
    <input type="hidden" name="Order_Charge[3]:CHARGE_ID" value="16361">
    <input type="hidden" name="Order_Charge[3]:DESCRIP" value="Shipping: SS Free Shipping">
    <input type="hidden" name="Order_Charge[3]:DISP_AMT" value="0.000">
    <input type="hidden" name="Order_Charge[3]:MODULE_ID" value="160">
    <input type="hidden" name="Order_Charge[3]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[3]:TAX_EXEMPT" value="0">
    <input type="hidden" name="Order_Charge[3]:TYPE" value="SHIPPING">
    
    <input type="hidden" name="Order_Charge[4]:AMOUNT" value="-0.240">
    <input type="hidden" name="Order_Charge[4]:CHARGE_ID" value="16362">
    <input type="hidden" name="Order_Charge[4]:DESCRIP" value="Category discount over $15.00">
    <input type="hidden" name="Order_Charge[4]:DISP_AMT" value="-0.240">
    <input type="hidden" name="Order_Charge[4]:MODULE_ID" value="174">
    <input type="hidden" name="Order_Charge[4]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[4]:TAX_EXEMPT" value="0">
    <input type="hidden" name="Order_Charge[4]:TYPE" value="CATOFF">
    
    <input type="hidden" name="Order_Charge[5]:AMOUNT" value="-0.210">
    <input type="hidden" name="Order_Charge[5]:CHARGE_ID" value="16363">
    <input type="hidden" name="Order_Charge[5]:DESCRIP" value="Orders over $20.00 get 1% off">
    <input type="hidden" name="Order_Charge[5]:DISP_AMT" value="-0.210">
    <input type="hidden" name="Order_Charge[5]:MODULE_ID" value="220">
    <input type="hidden" name="Order_Charge[5]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[5]:TAX_EXEMPT" value="1">
    <input type="hidden" name="Order_Charge[5]:TYPE" value="OFFTOTAL">
    
    <input type="hidden" name="Order_Charge[6]:AMOUNT" value="0.014">
    <input type="hidden" name="Order_Charge[6]:CHARGE_ID" value="16364">
    <input type="hidden" name="Order_Charge[6]:DESCRIP" value="Sales Tax">
    <input type="hidden" name="Order_Charge[6]:DISP_AMT" value="0.014">
    <input type="hidden" name="Order_Charge[6]:MODULE_ID" value="86">
    <input type="hidden" name="Order_Charge[6]:ORDER_ID" value="1805">
    <input type="hidden" name="Order_Charge[6]:TAX_EXEMPT" value="0">
    <input type="hidden" name="Order_Charge[6]:TYPE" value="TAX">
    
    <input type="hidden" name="Order_Total" value="23.24">
    Last edited by wcw; 06-26-08, 05:51 AM.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    #2
    Re: Nasty Bug in Order Edit Screen

    I had to try this in two different stores, but I was able to reproduce it. I'll spend some time tomorrow trying to track the source of the problem.
    Mark Johnson
    Vice President Development
    Miva Merchant
    [email protected]
    http://www.mivamerchant.com

    Comment


      #3
      Re: Nasty Bug in Order Edit Screen

      Halleluah. I didn't think anybody else would find this bug. Why on some stores and not on others. This one is also holding up the release of my next module.
      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
      Facebook http://www.facebook.com/EmporiumPlus
      Twitter http://twitter.com/emporiumplus

      Comment


        #4
        Re: Nasty Bug in Order Edit Screen

        Originally posted by Mark Johnson View Post
        I had to try this in two different stores, but I was able to reproduce it. I'll spend some time tomorrow trying to track the source of the problem.
        Mark,

        Were you able to track this down?
        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
        Facebook http://www.facebook.com/EmporiumPlus
        Twitter http://twitter.com/emporiumplus

        Comment


          #5
          Re: Nasty Bug in Order Edit Screen

          Originally posted by Mark Johnson View Post
          I had to try this in two different stores, but I was able to reproduce it. I'll spend some time tomorrow trying to track the source of the problem.
          Mark,

          It has been over a month since you and I demonstrated this bug. Is it getting fixed in the next streaming update? With more people making updates on the order edit screen, I am getting an increasing number of questions regarding this problem.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #6
            Re: Nasty Bug in Order Edit Screen

            Originally posted by wcw View Post
            Mark,

            It has been over a month since you and I demonstrated this bug. Is it getting fixed in the next streaming update? With more people making updates on the order edit screen, I am getting an increasing number of questions regarding this problem.
            We haven't fixed this bug yet, but we can reproduce it. We plan to have the fix for the next update (core-14). That update will most likely come out around the end of this month.
            Mark Johnson
            Vice President Development
            Miva Merchant
            [email protected]
            http://www.mivamerchant.com

            Comment


              #7
              Re: Nasty Bug in Order Edit Screen

              Thanks for the heads up.
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment

              Working...
              X