View Single Post
  #54  
Old 05-08-2007, 05:27 AM
 
aussieshop aussieshop is offline
 

Member
  
Join Date: Apr 2007
Posts: 11
 

Default Re: Improved minicart display

Thanks very much for this mod it works really well except for Gift certificate module. When I try to add a gift certificate to the minicart. It returns with this error message " Fatal error: Unsupported operand types in /clientdata/clients/a/u/aussiebestprice.com/www/minicart.php on line 53". Attached is my minicart.php can someone assist?

Quote:
$Id: minicart.php,v 1.4 2006/03/14 14:41:30 svowl Exp $
#
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"]);$smarty->assign("minicart_contents", $cart["products"]); //mycode
$smarty->assign("minicart_shipping", $cart["shipping_cost"]); //mycode
$smarty->assign("minicart_delivery", $cart["delivery"]); //mycode
__________________
X-cart Gold 4.1.6
Reply With Quote