Announcement

Collapse
No announcement yet.

When a customer is logged in they cannot edit billing or shipping information

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

    When a customer is logged in they cannot edit billing or shipping information

    The following was just brought to my attention, "When a customer is logged in to our Base ReadyTheme Site they are unable to edit either the billing or shipping information during the checkout process."

    I tried this and was able to easily replicate the issue when I unchecked the "Bill to same as shipping" box. I then went into the Customer Information [OCST] page and reverted back to the original code in case a change I made messed things up.

    Long story short something I have done is causing the Fields not to be editable unless I revert back to the original code. This would not be an issue except for the fact that the original code appears to have severe formatting issues and does not look like the original ReadyTheme Code.

    Any ideas on how to fix this or at least guide me to where I can get the original code?

    Thanks in advance.
    Sincerely,

    Stephen M. LaBar, Jr.
    (770) 441-9447
    The Martial Arts Store

    Please Visit Our Site At:
    http://www.themartialartsstore.com

    #2
    Re: When a customer is logged in they cannot edit billing or shipping information

    Hi Stephen,

    I loaded the Base ReadyTheme in my test store and during the checkout process went back and forth a few times to change and update my info and I didn't have any problems.

    I just went to your site, create an account and did the same thing. The only thing I can think of is when I unchecked the "ship to same address" box and updated my info, then checked the box again, it did not reflect my changes until I clicked through to the next page, then it showed up on both sides correct.

    Let me know if there's something else I can test for you. Either way I couldn't replicate your problem.

    Thanks,
    Jenn


    Originally posted by slabar View Post
    The following was just brought to my attention, "When a customer is logged in to our Base ReadyTheme Site they are unable to edit either the billing or shipping information during the checkout process."

    I tried this and was able to easily replicate the issue when I unchecked the "Bill to same as shipping" box. I then went into the Customer Information [OCST] page and reverted back to the original code in case a change I made messed things up.

    Long story short something I have done is causing the Fields not to be editable unless I revert back to the original code. This would not be an issue except for the fact that the original code appears to have severe formatting issues and does not look like the original ReadyTheme Code.

    Any ideas on how to fix this or at least guide me to where I can get the original code?

    Thanks in advance.

    Comment


      #3
      Re: When a customer is logged in they cannot edit billing or shipping information

      Jenn,

      Thanks for checking on this but James had already resolved the issue not long before you checked for me. Thanks and have a great day!
      Sincerely,

      Stephen M. LaBar, Jr.
      (770) 441-9447
      The Martial Arts Store

      Please Visit Our Site At:
      http://www.themartialartsstore.com

      Comment


        #4
        Re: When a customer is logged in they cannot edit billing or shipping information

        Originally posted by slabar View Post
        Jenn,

        Thanks for checking on this but James had already resolved the issue not long before you checked for me. Thanks and have a great day!
        What was the fix for this? I'm having the exact same problem. I've sort of got it working but when I try to readd the "Update Customer Record With This Information" checkbox it stops working. Also I'm thinking the Bill To: same as shipping checkbox is working backwards. In my case, when I check the box, the Bill To fields display. When I uncheck the box they "hide".

        Also when I changed to the Mode to Customer: Edit it wiped out all the previous styling. I feel like I'm going in circles trying to get this figured out.

        Leslie
        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


          #5
          Re: When a customer is logged in they cannot edit billing or shipping information

          I'm getting warmer - I think there's something wrong with the custom.js file. I changed the body id from JS_OCST to OCST and the checkbox worked as expected.

          In the custom.js file is a function to control the checkbox:

          Code:
          if ($('#shipping_controls').is(':visible')) {
          
                      if ($('#shipping_to_show').is(':checked')) {
          
                          $('#shipping_fields').hide();
          
                      };
          
                      $('#shipping_to_show').on('change', function () {
          
                          $('#shipping_fields').toggle();
          
                      });
          
                  };
          
                  if ($('#billing_controls').is(':visible')) {
          
                      if ($('#billing_to_show').is(':checked')) {
          
                          $('#billing_fields').hide();
          
                      };
          
                      $('#billing_to_show').on('change', function () {
          
                          $('#billing_fields').toggle();
          
                      });
          
                  };
          when I remove that code, the checkbox appears to work as expected. Is it okay to remove it or am I just going to be breaking it somewhere else?

          Leslie
          Last edited by lesliekirk; 06-15-15, 04:21 PM.
          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


            #6
            Re: When a customer is logged in they cannot edit billing or shipping information

            Leslie,

            This is the fix from Miva Support:

            I took a look at the OCST page and it looks like the issue was with the "Update Customer Record With This Information" check box being floated over the rest of the content. I added a div with a clearfix after the customer information to prevent this and keep that checkbox under the customer information fields where it should be.
            Sincerely,

            Stephen M. LaBar, Jr.
            (770) 441-9447
            The Martial Arts Store

            Please Visit Our Site At:
            http://www.themartialartsstore.com

            Comment


              #7
              Re: When a customer is logged in they cannot edit billing or shipping information

              Thanks Stephen!

              For posterity - my issue was not specifically with the "Update Customer Record With This Information" checkbox but with the "Bill To: same as shipping" checkbox.

              While the "Update Customer Record With This Information" checkbox did seem to get a bit wonky, I added a clear:both div to the layout and that problem was resolved.

              I had multiple issues going on. First, the customer could not edit any of the fields, I had to start over with a fresh Customer Fields template making sure it had Checkout: Editable selected in the dropdown. Then when I got all the CSS back in place the "Bill To: same as shipping" checkbox was still there.

              I started comparing the ACED Edit Customer screen to the OCST screen - both have the "Bill To: same as shipping" checkbox. The one on the ACED works as expected but the one on the OCST was working the opposite as it should have been. If you checked the "Bill To: same as shipping" checkbox it would display the Bill To info. You could change the content, but if you continued on to the next screen the content would revert to "same as shipping" because the "Bill To: same as shipping" checkbox is checked. If you unchecked the box the changes were lost too.

              I started digging into the custom.js file to and found that the body id JS_OCST had a function for the checkbox but the body id JS_ACED did not. After playing around with it for a bit, I removed the code mentioned in my previous post and the checkbox issue on the OCST screen seems to be resolved. I am waiting for someone with a bit more javascript foo than I have to let me know if I screwed up or found a "bug."

              Breakit Leslie
              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


                #8
                Re: When a customer is logged in they cannot edit billing or shipping information

                I'd like to know this one too. Followed all of Leslie's steps and it corrected the issues I was having regarding funky same as shipping checkbox actions and customer information when changed carrying over to the account as well as the rest of the checkout pages, although editing the inputs was never a problem for me. Should we keep the id on the OCST page as OCTS, instead of JS_OCST, or remove the code in the custom.js....and, most importantly as Leslie says is it going to break somewhere else.

                Waiting for reply.

                Jamie
                Jamie Donaldson
                JSDVS Web Design / Development
                Web Design | Web Development | E-commerce Design & Integration

                Comment

                Working...
                X