src/Cart/Manager.php
public function total($formatted = true)
    {
        $total = 0.00;
        $cartProducts = $this->getSession();

        foreach ($cartProducts as $product) {
            $total += $product->lineTotal();
        }

        if ($formatted == true) {
            $symbol = Session::get('currency_symbol');
            return $symbol . number_format($total, 2);
        }

        return $total;
    }
public function total($formatted = true)
    {
        $total = 0.00;
        $cartProducts = $this->getSession();

        foreach ($cartProducts as $product) {
            $total += $product->lineTotal();
        }

        if ($formatted == true) {
            $symbol = Session::get('currency_symbol');
            return $symbol . number_format($total, 2);
        }

        return $total;
    }
public function total ( $ formatted = true ) { $ total = 0.00 ; $ cartProducts = $ this -> getSession ( ) ; foreach ( $ cartProducts as $ product ) { $ total += $ product -> lineTotal ( ) ; } if ( $ formatted == true ) { $ symbol = Session :: get ( 'currency_symbol' ) ; return $ symbol . number_format ( $ total , 2 ) ; } return $ total ; }
Get the Current Cart Total

@return double $total
Get the Current Cart Total