// Improve Specific prices

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10118 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-11-14 17:40:42 +00:00
parent 18e709aec4
commit a1fb08f026
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;
}
}