public function price($format = true, $taxedItemsOnly = true)
    {
        $price = $this->price;

        if (isset($this->items)) {
            foreach ($this->items as $item) {
                if ($taxedItemsOnly && !$item->taxable) {
                    continue;
                }
                $price += $item->price(false, $taxedItemsOnly);
            }
        }

        return LaraCart::formatMoney($price, $this->locale, $this->internationalFormat, $format);
    }
public function price($format = true, $taxedItemsOnly = true)
    {
        $price = $this->price;

        if (isset($this->items)) {
            foreach ($this->items as $item) {
                if ($taxedItemsOnly && !$item->taxable) {
                    continue;
                }
                $price += $item->price(false, $taxedItemsOnly);
            }
        }

        return LaraCart::formatMoney($price, $this->locale, $this->internationalFormat, $format);
    }
public function price ( $ format = true , $ taxedItemsOnly = true ) { $ price = $ this -> price ; if ( isset ( $ this -> items ) ) { foreach ( $ this -> items as $ item ) { if ( $ taxedItemsOnly && ! $ item -> taxable ) { continue ; } $ price += $ item -> price ( false , $ taxedItemsOnly ) ; } } return LaraCart :: formatMoney ( $ price , $ this -> locale , $ this -> internationalFormat , $ format ) ; }
Gets the formatted price.

@param bool|true $format
@param bool      $taxedItemsOnly

@return string
Gets the formatted price .