public function subTotal($format = true, $withDiscount = true, $taxedItemsOnly = false)
{
$total = $this->price(false, $taxedItemsOnly) * $this->qty;
if ($withDiscount) {
$total -= $this->getDiscount(false);
}
return LaraCart::formatMoney($total, $this->locale, $this->internationalFormat, $format);
}