public function isQuoteable($product, $qty) { $resultIncrement = $this->checkQtyIncrements($product, $qty); $resultQuantities = $this->checkQuantities($product, $qty); $errors = array(); if ($resultIncrement->getHasError()) { $errors[] = $resultIncrement->getMessage(); } if ($resultQuantities->getHasError()) { $errors[] = $resultQuantities->getMessage(); } $result = new Varien_Object(); if (count($errors)) { $result->setHasErrors(true)->setErrors($errors); } return $result; }