Announcement

Collapse
No announcement yet.

Copying Ship To over to Bill To

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

  • Copying Ship To over to Bill To

    Is there a way to have the Ship To info actually copy over and populate the Bill To? The store owner would like to see if populated so if any of the info might need to be changed all of it doesn't have to be typed in again. Currently, when you check the Bill To same as shipping, it just hides the field and carries the data over to the next page. But if you need to make a change to the Bill To and uncheck the same as shipping all of the fields are empty (if you are on the OCST screen). It does look like the info is there is you go back to the screen, but it's not there initially.
    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

  • Hi Leslie,

    Without creating a modified version of the internal ToggleDetails.js file, there is no easy way to keep the form fields displayed and show the copied content on toggling of the "same as" check box.
    Matt Zimmermann
    Director of UI/UX Standards and Theme Development
    / Miva, Inc.

    Comment


    • Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Without creating a modified version of the internal ToggleDetails.js file, there is no easy way to keep the form fields displayed and show the copied content on toggling of the "same as" check box.
      Should I suggest the store owner reach out to the design team?
      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


      • Hi Leslie,

        Sure, they can definitely handle this for him.
        Matt Zimmermann
        Director of UI/UX Standards and Theme Development
        / Miva, Inc.

        Comment


        • If you want to give it a shot yourself, i've used something like following before:

          $('#makeBillSame')click(function(){
          if($(this).is(':checked')){
          $('#shipFname').val( $('#billFname').val() );
          $('#shipLname').val( $('#billLname').val() );
          $('#shipEmail').val( $('#billEmail').val() );
          etc.
          }
          });

          The #makeBillSame is the id on the checkbox...
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment


          • Bruce my javascript foo is weak and my assumptive level is too high...

            I was thinking that this could be added in a <script type="text/javascript"></script> snippet in the OSCT footer, so I added it there. It did not work. So I looked at the ID of the checkbox is "billing_to_show" - so I'm thinking that is why this snippet didn't work. Would it be safe to change #makeBillSame to #billing_to_show?
            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


            • Yes. Also, you'll need to correlate the text field IDs (or add text field IDs) to the ship to and bill to fields.
              Bruce Golub
              Phosphor Media - "Your Success is our Business"

              Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
              phosphormedia.com

              Comment


              • Okay, that makes sense but I think the trigger might wrong. When you click on the Same As Shipping checkbox, it hides the fields. When you unclick, the fields display again but are still empty.

                I need to confirm with the store owner, but I'm thinking they either want that checkbox to fill the fields when clicked the first time or to have the content there if they uncheck it.
                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


                • Ah, yes..the old, ask me a question before my fifth cup of coffee issue...in that case, simply rename the checkbox ID to match the jquery trigger (and make it different from the current ID which triggers the 'hide' script since you don't want it hidden. (I think i was thinking of the ones where the checkbox is set by default to "hidden": and clicking it makes it appear).
                  Bruce Golub
                  Phosphor Media - "Your Success is our Business"

                  Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                  phosphormedia.com

                  Comment


                  • Point of Clarification: the store owner wants it to work the way it used to, when you clicked the Same as Shipping it would be populated with the content and if anything needed to be changed it was right there on the screen. Currently, if the Bill To is different every field must be typed in manually. This slows the store owner down when trying to take orders over the phone.
                    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


                    • Originally posted by Bruce - PhosphorMedia View Post
                      Ah, yes..the old, ask me a question before my fifth cup of coffee issue...in that case, simply rename the checkbox ID to match the jquery trigger (and make it different from the current ID which triggers the 'hide' script since you don't want it hidden. (I think i was thinking of the ones where the checkbox is set by default to "hidden": and clicking it makes it appear).
                      You've got mail ...
                      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


                      • It's not hard to implement that at all

                        You can create a field listening trigger that reacts on "keyup" event

                        $(function () {
                        $('#Customer_LoginEmail').keyup(function () {
                        $('#ShipEmail').val($('#Customer_LoginEmail').val( ));
                        });
                        });

                        The code above will be automatically duplicating anything you type in from the registration email field into the shipping "Email" field.
                        We have it implemented here: https://www.activeherb.com/mm5/merchant.mvc?Screen=ACAD
                        Start to type in an email on the very top for the account registration and see how it duplicates the data.

                        Same code with small modifications may be used to duplicate data from ship to into the bill to

                        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