I tried this but it doesnt work for me....i get an error "
Parse error: syntax error, unexpected $end in
/home/trendytt/public_html/minicart.php on line
65"
my gift certifictes module is disabled
.....any ideas?
Quote:
if ( !defined('XCART_START') ) { header("Location: home.php"); die("Access denied"); }
x_session_register ("cart");
$MINICART["total_cost"] = price_format(0);
$MINICART["total_items"] = 0;
if (!empty($cart)) {
if (!empty($cart["total_cost"])) {
if (!empty($active_modules["Fast_Lane_Checkout"]))
$MINICART["total_cost"] = $cart["display_subtotal"];
else
$MINICART["total_cost"] = $cart["total_cost"];
}
$MINICART["total_items"] = 0;
if (!empty($cart["products"]) and is_array($cart["products"])) {
foreach ($cart["products"] as $_tmp)
$MINICART["total_items"] += $_tmp["amount"];
}
if (!empty($cart["giftcerts"]) and is_array($cart["giftcerts"]))
$MINICART["total_items"] +=$cart["giftcerts"];
$smarty->assign("minicart_total_cost", $MINICART["total_cost"]);
$smarty->assign("minicart_total_items", $MINICART["total_items"]);
?>
|