public function add($autodate = true, $null_values = false) { if (!$this->id_lang) { $this->id_lang = Configuration::get('PS_LANG_DEFAULT'); } if (!$this->id_shop) { $this->id_shop = Context::getContext()->shop->id; } $return = parent::add($autodate, $null_values); Hook::exec('actionCartSave'); return $return; }