瀏覽代碼

Correctif statistiques

develop
Guillaume 2 年之前
父節點
當前提交
1584d28ca3
共有 1 個檔案被更改,包括 10 行新增7 行删除
  1. +10
    -7
      Statistic/Product/ProductsSalesStatistic.php

+ 10
- 7
Statistic/Product/ProductsSalesStatistic.php 查看文件

@@ -43,14 +43,17 @@ class ProductsSalesStatistic extends Statistic
'label' => 'Total ventes'
]
);

foreach ($this->productFamily->getProducts() as $product) {
$this->productIds[$product->getId()] = $product;
$this->addProperty(
$product->getId(),
[
'label' => $product->getTitle()
]
);
if($product->getId()) {
$this->productIds[$product->getId()] = $product;
$this->addProperty(
$product->getId(),
[
'label' => $product->getTitle()
]
);
}
}
}


Loading…
取消
儲存