Skip to content

Commit

Permalink
sub items need sub items prices
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Dec 4, 2015
1 parent 2352485 commit fd22659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CartSubItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getPrice($format = true)
$price = $this->price;

foreach ($this->items as $item) {
$price += $item->getPrice(false, false);
$price += $item->getPrice(false, false) + $item->subItemsTotal(false, false);
}

return \App::make(LaraCart::SERVICE)->formatMoney($price, $this->locale, $this->internationalFormat, $format);
Expand Down

0 comments on commit fd22659

Please sign in to comment.