| Conditions | 5 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | public function price($format = true, $taxedItemsOnly = true) |
||
| 60 | { |
||
| 61 | $price = $this->price; |
||
| 62 | |||
| 63 | if (isset($this->items)) { |
||
| 64 | foreach ($this->items as $item) { |
||
| 65 | if($taxedItemsOnly && !$item->taxable) { |
||
|
|
|||
| 66 | continue; |
||
| 67 | } |
||
| 68 | $price += $item->price(false); |
||
| 69 | } |
||
| 70 | } |
||
| 71 | |||
| 72 | return LaraCart::formatMoney($price, $this->locale, $this->internationalFormat, $format); |
||
| 73 | } |
||
| 74 | } |
||
| 75 |