public function price($format = true, $taxedItemsOnly = false, $withTax = false)
    {
        $total = 0;

        if ($this->active) {
            $total = $this->price + $this->subItemsTotal(false, $taxedItemsOnly);

            if ($withTax) {
                $total += $this->tax * $total;
            }
        }

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

        if ($this->active) {
            $total = $this->price + $this->subItemsTotal(false, $taxedItemsOnly);

            if ($withTax) {
                $total += $this->tax * $total;
            }
        }

        return LaraCart::formatMoney(
            $total,
            $this->locale,
            $this->internationalFormat, $format
        );
    }
public function price ( $ format = true , $ taxedItemsOnly = false , $ withTax = false ) { $ total = 0 ; if ( $ this -> active ) { $ total = $ this -> price + $ this -> subItemsTotal ( false , $ taxedItemsOnly ) ; if ( $ withTax ) { $ total += $ this -> tax * $ total ; } } return LaraCart :: formatMoney ( $ total , $ this -> locale , $ this -> internationalFormat , $ format ) ; }
Gets the price of the item with or without tax, with the proper format.

@param bool $format
@param bool $taxedItemsOnly
@param bool $withTax

@return string
Gets the price of the item with or without tax with the proper format .