Jump to content

[SOLVED] Auto Fill in Checkout


Recommended Posts

Hi All

My first post here.

When you go throught the registration / checkout process, whilst typing your name for example it is duplicated in the name field below, (which is excellent by the way) but where is the javascript for this as I cant seem to find it.

Thanks in advance

Mark

Link to comment
Share on other sites

The code that copies the first name is in authentication.tpl on line 81:

<input onkeyup="$('#firstname').val(this.value);" type="text" class="text" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname}{/if}" />



It is the onkeyup event that copies the value.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...