leoCodesAShop Posted October 30, 2023 Share Posted October 30, 2023 I wanna add a new cutom Adress field i can add under the national setting to different countries. I tryed this for over a week now and in my desperation I now come to you for help. I tryed different Hooks like AdditionalCustomerFormFields or DisplayAdditionalCustomerAddressFields but nether of these are the solution i want. I even tryed overriding the Address-Class and the AdminController but coudnt get it to work. Please helpme, I would be very thankful. Leo Link to comment Share on other sites More sharing options...
leoCodesAShop Posted October 31, 2023 Author Share Posted October 31, 2023 Okay finally figured it out. public function hookAdditionalCustomerAddressFields($params) { $field = new FormField(); $field->setName('hype'); $field->setType('text'); $field->setLabel($this->l('HYPE_but_you_see_it')); $fields[] = $field; return $fields; } when i found the right hook it was easy. 1 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