if (!empty($_SESSION['new_products_id_in_cart']) && $_SESSION['new_products_id_in_cart'] == $productId) { $content .= '<span class="newItemInCart">'; } else { $content .= '<span class="infoboxcontents">'; } $content .= $product->getTitle() . '</span></a></td></tr>'; if (!empty($_SESSION['new_products_id_in_cart']) && $_SESSION['new_products_id_in_cart'] == $productId) { $_SESSION['new_products_id_in_cart'] = ''; } } $content .= '</table>'; if ($gvBalance = CommerceVoucher::getGiftAmount()) { $content .= '<table style="margin-top:10px;" cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . tra('Gift Certificate Balance') . '</td><td class="smalltext" align="right" valign="bottom">' . $gvBalance . '</td></tr></table>'; $content .= '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="' . zen_href_link(FILENAME_GV_SEND) . '">' . tra('Send Gift Certificate') . '</a></td></tr></table>'; } if ($couponAmount = CommerceVoucher::getCouponAmount()) { $content .= '<table style="margin-top:10px;" cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $couponAmount . '</td></tr></table>'; } if (!empty($_SESSION['cc_id'])) { $content .= '<table style="margin-top:10px;" cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>'; } } else { $content = BOX_SHOPPING_CART_EMPTY; } if ($gBitCustomer->mCart->count_contents() > 0) { $content .= zen_draw_separator(); $content .= $currencies->format($gBitCustomer->mCart->show_total()); } } else { $content = ''; }
<?php // +--------------------------------------------------------------------+ // | Copyright (c) 2007 bitcommerce.org | // | http://www.bitcommerce.org | // +--------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license | // +--------------------------------------------------------------------+ /** * @version $Header$ * * System class for handling the liberty package * * @package bitcommerce * @author spider <*****@*****.**> */ require_once BITCOMMERCE_PKG_PATH . 'classes/CommerceVoucher.php'; global $gBitSmarty; $gBitSmarty->assign('gvBalance', CommerceVoucher::getGiftAmount()); $gBitSmarty->assign('couponAmount', CommerceVoucher::getCouponAmount()); if (!empty($messageStack) && $messageStack->size('account') > 0) { $gBitSmarty->assign('accountMessage', $messageStack->output('account')); } $gBitSmarty->display('bitpackage:bitcommerce/page_account.tpl');