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;
    }