Jump to content

Remove Last Name Field From Opc


Recommended Posts

Hi friends!

 

Im using one page checkout and I did some customizations in order to make it easy for paying... its great so far... but in my country its a common practice to ask for complete name... instead of name and last name.... I want to remove the field, it will be -2 fields, since it appears in create account and address.... the checkout looks good for me, I just need this to finish :P screen: https://www.dropbox.com/s/20rjromqhil1tk6/Screenshot%202016-02-24%2013.39.27.png?dl=0

 

This code was working on 1.6.0.9, but dont work now in this new shop 1.6.1.x:

{literal}
<script type="text/javascript">
var complname =  $("#customer_firstname").val();
var arrayname = complname.split(' ');
var lastnameN = arrayname.pop();
lastnameN = lastnameN.toString();
$("#customer_lastname").val(lastnameN);
</script>
{/literal}
 
 
 
any help? thanks guys!!
 
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...