Ver código fonte

Correctif statistiques

develop
Guillaume 2 anos atrás
pai
commit
1584d28ca3
1 arquivos alterados com 10 adições e 7 exclusões
  1. +10
    -7
      Statistic/Product/ProductsSalesStatistic.php

+ 10
- 7
Statistic/Product/ProductsSalesStatistic.php Ver arquivo

@@ -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()
]
);
}
}
}


Carregando…
Cancelar
Salvar