Jump to content

can't update custom orders field via web services


Recommended Posts

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

×
×
  • Create New...