public function getSubTotalCost()
    {
        $total = 0;

        foreach ($this->items as $item) {
            if ($item->SubTotal) {
                $total += $item->SubTotal;
            }
        }
        
        return $total;
    }
public function getSubTotalCost()
    {
        $total = 0;

        foreach ($this->items as $item) {
            if ($item->SubTotal) {
                $total += $item->SubTotal;
            }
        }
        
        return $total;
    }
public function getSubTotalCost ( ) { $ total = 0 ; foreach ( $ this -> items as $ item ) { if ( $ item -> SubTotal ) { $ total += $ item -> SubTotal ; } } return $ total ; }
Find the cost of all items in the cart, without any tax.

@return Currency
Find the cost of all items in the cart without any tax .