mohrt Posted August 18, 2014 Share Posted August 18, 2014 Hi, I added a custom field to the orders table. It shows up fine in the web services, however I can't get an update to work. Here are the pertinent parts of the orders override: class Order extends OrderCore { public $total_override; public function __construct($id = null, $id_lang = null) { parent::__construct($id, $id_lang); self::$definition['fields']['total_override'] = array('type' => self::TYPE_FLOAT); $this->webserviceParameters['fields']['total_override'] = array(); } } I try to update via web services (like I do any other field), no noticeable errors, but the new value does not get populated in the db. Am I missing something in the override? Link to comment Share on other sites More sharing options...
mohrt Posted August 18, 2014 Author Share Posted August 18, 2014 I solved it, the self::$definition() needs to go before parent::__construct() Link to comment Share on other sites More sharing options...
Recommended Posts