$product) { if (Validate::isLoadedObject($product = new Product((int)$product))) { // foreach ($languages as $key => $language) { // if(isset($title[$product->id])){ // $product->name[$language['id_lang']] = $title[$product->id]; // } // if(isset($short_description[$product->id])){ // $product->description_short[$language['id_lang']] = $short_description[$product->id]; // } // if(isset($description[$product->id])){ // $product->description[$language['id_lang']] = $description[$product->id]; // } // } if (isset($title[$product->id])) { $product->name[(int) $id_lang_fast] = $title[$product->id]; } if (isset($short_description[$product->id])) { $product->description_short[(int) $id_lang_fast] = $short_description[$product->id]; } if(isset($description[$product->id])){ $product->description[(int) $id_lang_fast] = $description[$product->id]; } if ($product->save()) { $nbProduct++; } else { $this->_html .= $product . " erreur"; } } else { $this->_html .= $product . " erreur"; } } $this->_html .= '