Gombidi Bilişim Posted October 28, 2014 Share Posted October 28, 2014 Hello my friends; I need something about prestashop webservices, here is my function on order.php public function GetAddressx() { $addressx = new Address($this->id_address_delivery); return $addressx; } and i need to add an array field to orders webservice, i already add needed definitions = 'testaddress' => array('type' => self::TYPE_STRING), and webserviceParameters = 'testaddress' => array('getter' => 'GetAddressx'), if i change my function for single value, it work but i cant get arrays ( like associations or order_rows ) working function = public function GetAddressx() { $addressx = new Address($this->id_address_delivery); return $addressx->address1; } 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