Removed: Auto added service products from purchased products list in the view of AdminCustomerController

This commit is contained in:
vishalsingh.qlo325
2024-04-30 13:05:45 +05:30
parent 984c6c61f0
commit a791b81296

View File

@@ -717,7 +717,7 @@ class CustomerCore extends ObjectModel
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT * FROM `'._DB_PREFIX_.'orders` o
LEFT JOIN `'._DB_PREFIX_.'order_detail` od ON o.id_order = od.id_order
WHERE o.valid = 1 AND o.`id_customer` = '.(int)$this->id);
WHERE od.`product_auto_add`= 0 AND o.valid = 1 AND o.`id_customer` = '.(int)$this->id);
}
public static function getDefaultGroupId($id_customer)