';
if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
' . "\n" . '
' . "\n";
$products = $_SESSION['cart']->get_products();
$reward_points=GetRewardPoints($products);
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$content .= '- ';
/*
// if($products[$i]['products_priced_by_attribute'])
$reward_points+=(GetRewardPoints($products[$i]['id'],$products[$i]['attributes'])*$products[$i]['quantity']);
// else
// $reward_points+=(GetRewardPoints($products[$i]['id'])*$products[$i]['quantity']);
*/
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$content .= '';
} else {
$content .= '';
}
$content .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER . '';
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$content .= '';
} else {
$content .= '';
}
$content .= $products[$i]['name'] . '
' . "\n";
if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
$_SESSION['new_products_id_in_cart'] = '';
}
}
$content .= '
' . "\n" . '
';
} else {
$content .= '' . BOX_SHOPPING_CART_EMPTY . '
';
}
if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
';
$content .= '' . $currencies->format($_SESSION['cart']->show_total()) . '
';
$content .= '' . (int)$reward_points . ' ' . PRODUCT_REWARD_POINT_TAG . '
';
$content .= '
';
}
if (isset($_SESSION['customer_id'])) {
$gv_query = "select amount
from " . TABLE_COUPON_GV_CUSTOMER . "
where customer_id = '" . $_SESSION['customer_id'] . "'";
$gv_result = $db->Execute($gv_query);
if ($gv_result->RecordCount() && $gv_result->fields['amount'] > 0 ) {
$content .= '';
$content .= '' . VOUCHER_BALANCE . $currencies->format($gv_result->fields['amount']) . '
';
}
}
$content .= '';
?>