Skip to content

Commit 958f3d4

Browse files
committed
fix
1 parent 4744158 commit 958f3d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Objects/Cart.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ public function getTotal(Customer $customer): string
9292
$product = $item->getProduct();
9393
$prices[$productId] = $item->getPricePerItem()
9494
?? $prices[$productId]
95-
?? $item->getProduct()
96-
->getAmountProduct($customer)
97-
;
95+
?? $product->getAmountProduct($customer)
96+
;
9897

9998
$price = $this->math->mul($this->getQuantity($product), $prices[$productId]);
10099
$result = $this->math->add($result, $price);

0 commit comments

Comments
 (0)