@@ 162-166 (lines=5) @@ | ||
159 | public function computePerCategories(Oledrion_products $product, $quantity) |
|
160 | { |
|
161 | // Nombre de produits par catégories |
|
162 | if (isset($this->categoriesProductsCount[$product->product_cid])) { |
|
163 | ++$this->categoriesProductsCount[$product->product_cid]; |
|
164 | } else { |
|
165 | $this->categoriesProductsCount[$product->product_cid] = 1; |
|
166 | } |
|
167 | ||
168 | // Mise à jour des quantités par catégories |
|
169 | if (isset($this->categoriesProductsQuantities[$product->product_cid])) { |
|
@@ 169-173 (lines=5) @@ | ||
166 | } |
|
167 | ||
168 | // Mise à jour des quantités par catégories |
|
169 | if (isset($this->categoriesProductsQuantities[$product->product_cid])) { |
|
170 | $this->categoriesProductsQuantities[$product->product_cid] += $quantity; |
|
171 | } else { |
|
172 | $this->categoriesProductsQuantities[$product->product_cid] = $quantity; |
|
173 | } |
|
174 | $this->totalProductsQuantities += $quantity; |
|
175 | // Quantité totale de tous les produits |
|
176 | } |