Merge branch 'master' of https://github.com/bagisto/bagisto into development

This commit is contained in:
rahulshukla-home 2020-04-16 18:17:07 +05:30
commit 4a57040843
1 changed files with 8 additions and 6 deletions

View File

@ -110,12 +110,14 @@ class Helper extends Review
foreach ($orderItems as $key => $orderItem) {
$products[] = $orderItem->product;
$this->orderBrandsRepository->create([
'order_item_id' => $orderItem->id,
'order_id' => $orderItem->order_id,
'product_id' => $orderItem->product_id,
'brand' => $products[$key]->brand,
]);
try {
$this->orderBrandsRepository->create([
'order_item_id' => $orderItem->id,
'order_id' => $orderItem->order_id,
'product_id' => $orderItem->product_id,
'brand' => $products[$key]->brand,
]);
} catch(\Exception $exception) {}
}
}