Exemple #1
0
 public function add($autodate = true, $nullValues = false)
 {
     $res = parent::add($autodate, $nullValues);
     if (Module::isInstalled('agilemultipleseller') and $res) {
         require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
         AgileMultipleSeller::sendNewProductEmail($this->id);
     }
     if (Module::isInstalled('agilesellerlistoptions') and $res) {
         require_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
         $aslo = new AgileSellerListOptions();
         $aslo->processProductExtenstions(array('product' => $this));
     }
     return $res;
 }