Remove Unused method Product::getAllServiceProducts()

This commit is contained in:
abhishek-webkul
2024-02-07 17:24:27 +05:30
committed by GitHub
parent 772f639751
commit 0caf791d93

View File

@@ -1414,22 +1414,6 @@ class ProductCore extends ObjectModel
return $result;
}
public static function getAllServiceProducts($activeOnly = true, $idLang = null)
{
if (!$idLang) {
$idLang = Context::getContext()->language->id;
}
$sql = 'SELECT p.*, pl.*
FROM `'._DB_PREFIX_.'product` p
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON
(pl.`id_product` = p.`id_product` AND pl.`id_lang` = '.(int) $idLang.')
WHERE p.`booking_product` = 0'.($activeOnly ? ' AND p.`active` = 1' : '').'
ORDER BY p.`id_product`';
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
}
public function getAvailableServiceProductsCategories($id_lang, $front = false, $active = true, Context $context = null)
{
if (!$context) {