<?php

require("../init.php");
require("../includes/clientfunctions.php");
require("../includes/orderfunctions.php");
require("../includes/invoicefunctions.php");
require("../includes/configoptionsfunctions.php");
require("../includes/cartfunctions.php");
require("../includes/domainfunctions.php");

/*
*** USAGE SAMPLES ***

<script language="javascript" src="feeds/carttotal.php"></script>

*/

$currency = getCurrency();

$carttotals = calcCartTotals('',true);

$total = ($carttotals['total']) ? $carttotals['total'] : formatCurrency(0);

widgetoutput($total);

function widgetoutput($value) {
    echo "document.write('".addslashes($value)."');";
    exit;
}

?>