LukePOLO\LaraCart\CartItem::price PHP 메소드

price() 공개 메소드

Gets the price of the item with or without tax, with the proper format.
public price ( boolean $format = true, boolean $taxedItemsOnly = false ) : string
$format boolean
$taxedItemsOnly boolean
리턴 string
    public function price($format = true, $taxedItemsOnly = false)
    {
        return LaraCart::formatMoney($this->price + $this->subItemsTotal(false, $taxedItemsOnly), $this->locale, $this->internationalFormat, $format);
    }