// Improve Specific prices

This commit is contained in:
rGaillard
2011-11-14 17:40:42 +00:00
parent 2c2586544d
commit 11fc755c46
11 changed files with 89 additions and 58 deletions
+9
View File
@@ -1136,5 +1136,14 @@ class OrderCore extends ObjectModel
{
return OrderDetail::getList($this->id);
}
public function orderContainProduct($id_product)
{
$product_list = $this->getOrderDetailList();
foreach ($product_list as $product)
if ($product['product_id'] == (int)$id_product)
return true;
return false;
}
}