Explorar el Código

Correctif statistiques

develop
Guillaume hace 2 años
padre
commit
1584d28ca3
Se han modificado 1 ficheros con 10 adiciones y 7 borrados
  1. +10
    -7
      Statistic/Product/ProductsSalesStatistic.php

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

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


Cargando…
Cancelar
Guardar