johnph Posted February 25, 2016 Share Posted February 25, 2016 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 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 More sharing options...
johnph Posted March 7, 2016 Author Share Posted March 7, 2016 (edited) the most stupid way to solve it, but works:<input type="hidden" class="form-control validate" id="customer_lastname" name="customer_lastname" value="."> solved, technically thanks btw community Edited March 7, 2016 by johnph (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now