meccabooks Posted December 1, 2013 Posted December 1, 2013 I am getting below error when I am trying to install below module - ILLICOPRESTA_P15_StockManagement : Unable to install override: The method getAllProductSupplierPrice in the class ProductSupplier is already overriden. Urgent help will be appreciated.. this is my code in the file ProductSupplier.php <?php class ProductSupplier extends ProductSupplierCore { public static function getAllProductSupplierPrice($id_product, $id_product_attribute, $with_currency = false) { // build query $query = new DbQuery(); $query->select('ps.product_supplier_price_te, s.name as supplier_name'); if ($with_currency) $query->select('ps.id_currency'); $query->from('product_supplier', 'ps'); $query->where('ps.id_product = '.(int)$id_product.' AND ps.id_product_attribute = '.(int)$id_product_attribute ); $query->leftJoin('supplier', 's', 'ps.id_supplier = s.id_supplier'); if (!$with_currency) return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); } } Share this post Link to post Share on other sites More sharing options...
matzmu Posted December 1, 2013 Posted December 1, 2013 Maybe other module override this function? If you are using IDE you can easly find this function name in other files . Share this post Link to post Share on other sites More sharing options...
vekia Posted December 1, 2013 Posted December 1, 2013 3 threads with the same question, it is enough to create one Share this post Link to post Share on other sites More sharing options...
Recommended Posts