WhyEs Posted March 6, 2014 Share Posted March 6, 2014 (edited) Hi all, I'm trying to add fields 'house number' and 'house number addition' to the customer registration form (order-opc). I made changes in the following files: htdocs/.acp/themes/default/template/controllers/customers/helpers/view/view.tpl htdocs/override/classes/Address.php htdocs/override/controllers/admin/AdminAddressesController.php htdocs/override/controllers/front/AuthController.php htdocs/themes/ theme /address.tpl htdocs/themes/ theme /authentication.tpl htdocs/themes/ theme /order-opc-new-account.tpl htdocs/themes/ theme /shopping-cart.tpl It's working fine, except for when a guest tries to create a new account and wants to use an invoice address. I've added extra _invoice-fields to the template (order-opc-new-account.tpl), but I'm having trouble finding out where its values are being picked up (for 'delivery', the form data is posted to and read by AuthController.php). Help please! Edited March 7, 2014 by WhyEs (see edit history) Link to comment Share on other sites More sharing options...
WhyEs Posted March 7, 2014 Author Share Posted March 7, 2014 (edited) Problem is solved. In function saveAddress() in themes/theme/js/order-opc.js, I added: params += 'house_number='+encodeURIComponent($('#house_number'+(type == 'invoice' ? '_invoice' : '')).val())+'&'; params += 'hn_addition='+encodeURIComponent($('#hn_addition'+(type == 'invoice' ? '_invoice' : '')).val())+'&'; Edited March 7, 2014 by WhyEs (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