|
|
@@ -59,13 +59,13 @@ class OrderShopTransformer |
|
|
|
|
|
|
|
$i = 0; |
|
|
|
|
|
|
|
$orderProductsByParentCategory = $this->orderShopSolver->getOrderProductsByParentCategory($orderShop); |
|
|
|
foreach ($orderProductsByParentCategory as $labelCategory => $orderProducts) { |
|
|
|
foreach ($orderProducts as $orderProduct) { |
|
|
|
// $orderProductsByParentCategory = $this->orderShopSolver->getOrderProductsByParentCategory($orderShop); |
|
|
|
// foreach ($orderProductsByParentCategory as $labelCategory => $orderProducts) { |
|
|
|
foreach ($orderShop->getOrderProducts() as $orderProduct) { |
|
|
|
$data['orderProducts'][$i]['id'] = $orderProduct->getId(); |
|
|
|
$data['orderProducts'][$i]['product'] = $orderProduct->getProduct()->getId(); |
|
|
|
$data['orderProducts'][$i]['quantityOrder'] = $orderProduct->getQuantityOrder(); |
|
|
|
$data['orderProducts'][$i]['labelCategory'] = $labelCategory; |
|
|
|
// $data['orderProducts'][$i]['labelCategory'] = $labelCategory; |
|
|
|
$data['orderProducts'][$i]['title'] = $orderProduct->getTitle(); |
|
|
|
$data['orderProducts'][$i]['price'] = $this->priceSolver->getPrice($orderProduct); |
|
|
|
$data['orderProducts'][$i]['priceWithTax'] = $this->priceSolver->getPriceWithTax($orderProduct); |
|
|
@@ -78,7 +78,7 @@ class OrderShopTransformer |
|
|
|
); |
|
|
|
$i++; |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
return $data; |
|
|
|
} |