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

subItemsTotal() 공개 메소드

Gets the totals for the options.
public subItemsTotal ( boolean $format = true, boolean $taxedItemsOnly = false ) : string
$format boolean
$taxedItemsOnly boolean
리턴 string
    public function subItemsTotal($format = true, $taxedItemsOnly = false)
    {
        $total = 0;
        foreach ($this->subItems as $subItem) {
            $total += $subItem->price(false, $taxedItemsOnly);
        }
        return LaraCart::formatMoney($total, $this->locale, $this->internationalFormat, $format);
    }