Announcement

Collapse
No announcement yet.

Copying Ship To over to Bill To

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

  • AHerb
    replied
    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

    Leave a comment:


  • lesliekirk
    replied
    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 ...

    Leave a comment:


  • lesliekirk
    replied
    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.

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    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).

    Leave a comment:


  • lesliekirk
    replied
    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.

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    Yes. Also, you'll need to correlate the text field IDs (or add text field IDs) to the ship to and bill to fields.

    Leave a comment:


  • lesliekirk
    replied
    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?

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    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...

    Leave a comment:


  • Matt Zimmermann
    replied
    Hi Leslie,

    Sure, they can definitely handle this for him.

    Leave a comment:


  • lesliekirk
    replied
    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?

    Leave a comment:


  • Matt Zimmermann
    replied
    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.

    Leave a comment:


  • lesliekirk
    started a topic Copying Ship To over to Bill To

    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.
Working...
X