This commit is contained in:
Ludovic CANDELLIER
2022-11-11 13:05:40 +01:00
parent f89acd9399
commit 7df2421373
104 changed files with 1212 additions and 764 deletions

View File

@@ -9,12 +9,8 @@ class OrderDetails
public static function saveBasket($order_id, $data)
{
foreach ($data as $item) {
$detail = self::store([
'order_id' => $order_id,
'offer_id' => $item['id'],
'quantity' => $item['quantity'],
'price_taxed' => $item['price'],
]);
$item['order_id'] = $order_id;
$detail = self::store($item);
}
return true;
}