|
@@ 325-327 (lines=3) @@
|
| 322 |
|
$ht = (float)$product->getVar('product_price', 'n'); |
| 323 |
|
} |
| 324 |
|
// S'il y a des options, on rajoute leur montant |
| 325 |
|
if (is_array($data['attributes']) && count($data['attributes']) > 0) { |
| 326 |
|
$ht += $this->handlers->h_oledrion_attributes->getProductOptionsPrice($data['attributes'], $product->getVar('product_vat_id')); |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
$this->totalAmountBeforeDiscounts += ($data['qty'] * $ht); |
| 330 |
|
|
|
@@ 437-440 (lines=4) @@
|
| 434 |
|
} |
| 435 |
|
// S'il y a des options, on rajoute leur montant |
| 436 |
|
$productAttributes = array(); |
| 437 |
|
if (is_array($cartProduct['attributes']) && count($cartProduct['attributes']) > 0) { |
| 438 |
|
$ht += $this->handlers->h_oledrion_attributes->getProductOptionsPrice($cartProduct['attributes'], $cartProduct['product']->getVar('product_vat_id'), $productAttributes); |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
$discountedPrice = $ht; |
| 442 |
|
$quantity = (int)$cartProduct['qty']; |
| 443 |
|
|