We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249aa90 commit df984adCopy full SHA for df984ad
src/Objects/Cart.php
@@ -92,9 +92,8 @@ public function getTotal(Customer $customer): string
92
$product = $item->getProduct();
93
$prices[$productId] = $item->getPricePerItem()
94
?? $prices[$productId]
95
- ?? $item->getProduct()
96
- ->getAmountProduct($customer)
97
- ;
+ ?? $product->getAmountProduct($customer)
+ ;
98
99
$price = $this->math->mul($this->getQuantity($product), $prices[$productId]);
100
$result = $this->math->add($result, $price);
0 commit comments