Roman0002 Posted October 18, 2014 Share Posted October 18, 2014 Hello, I would like to add to the new value of the variable address (Email, VAT ID, company ID, longitude, latitude) I tried this but it does not work I save data and them, when I come back the data in the field(Email, VAT ID, company ID, longitude, latitude) are gone ........................... array( 'type' => 'text', 'class' => 'fixed-width-xl', 'label' => $this->l('Zemepirsná šírka'), 'name' => 'latitude', 'maxlength' => 100, 'required' => false, 'hint' => $this->l('Zemepisná šírka. Adresa predajcu.') ), array( 'type' => 'text', 'class' => 'fixed-width-xl', 'label' => $this->l('Zemepirsná dĺžka'), 'name' => 'longitude', 'maxlength' => 100, 'required' => false, 'hint' => $this->l('Zemepirsná dĺžka. Adresa predajcu.') ), array( 'type' => 'text', 'class' => 'fixed-width-xl', 'label' => $this->l('E-mail'), 'name' => 'email', 'required' => false, 'maxlength' => 100, 'hint' => $this->l('Email') ), array( 'type' => 'text', 'class' => 'fixed-width-xl', 'label' => $this->l('IČO'), 'name' => 'ico', 'required' => false, 'maxlength' => 100, 'hint' => $this->l('IČO spoločnosti.') ), array( 'type' => 'text', 'class' => 'fixed-width-xl', 'label' => $this->l('DIČ'), 'name' => 'dic', 'required' => false, 'maxlength' => 100, 'hint' => $this->l('DIČ spoločnosti.') ), ............................. $this->fields_value = array( ........... 'latitude' => $address->latitude, 'longitude' => $address->longitude, 'email' => $address->email, 'ico' => $address->ico, 'dic' => $address->dic, ............... public function postProcess() ......... ............ ........... $address->latitude = Tools::getValue('latitude', null); $address->longitude = Tools::getValue('longitude', null); $address->email = Tools::getValue('email', null); $address->ico = Tools::getValue('ico', null); $address->dic = Tools::getValue('dic', null); 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