public function saveProduct($product, $request = array()) { $price = trim($product->getPropertyValue('price')); if (empty($price)) { $product->setPropertyValue('price', 0); } $product = $this->details->saveProduct($product, $request); SJB_ProductsManager::saveProduct($product); return $product; }