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
        );
    }