瀏覽代碼

[Backend] Produit correcitf affichage prix + Réduc prix de vente souhaité

develop
Fabien Normand 2 年之前
父節點
當前提交
7b703e48dd
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      Transformer/Order/OrderShopTransformer.php

+ 5
- 5
Transformer/Order/OrderShopTransformer.php 查看文件

@@ -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;
}

Loading…
取消
儲存