瀏覽代碼

Correction PriceUtils

feature/export_comptable
Guillaume 4 年之前
父節點
當前提交
477f2b6dbf
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      ShopBundle/Controller/Frontend/CartController.php
  2. +1
    -1
      ShopBundle/Services/PriceUtils.php

+ 1
- 1
ShopBundle/Controller/Frontend/CartController.php 查看文件

@@ -47,7 +47,7 @@ class CartController extends BaseController
foreach($data as $orderProduct) {
if($orderProduct instanceof OrderProductInterface) {
$this->orderUtils->addOrderProduct($orderShop, $orderProduct) ;
if($orderProduct->getQuantityorder() > 0) {
if($orderProduct->getQuantityOrder() > 0) {
$this->orderProducts[] = $orderProduct ;
}
}

+ 1
- 1
ShopBundle/Services/PriceUtils.php 查看文件

@@ -156,7 +156,7 @@ class PriceUtils
if($entity instanceof OrderShopInterface) {
return $this->getSumOrderProducts($entity->getOrderProducts(), $withTax, $withReduction) ;
}
if($entity instanceof Collection) {
if($entity instanceof Collection || is_array($entity)) {
return $this->getSumOrderProducts($entity, $withTax, $withReduction) ;
}
}

Loading…
取消
儲存