Guest Posted May 20, 2006 Posted May 20, 2006 how do i add a "please sign in" to my accout balance box when the customer is not logged into there account? below is a copy of my file. <?php /* $Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- shopping_cart //--> <tr> <td> <?php $info_box_contents = array(); $info_box[] = array('text' => BOX_HEADING_ACCOUNT_BALANCE); new infoBoxHeading($info_box, false, true); #### Points/Rewards Module V1.60 BOF #### if (tep_session_is_registered('customer_id')) { $shopping_points = tep_get_shopping_points($customer_id); if ($shopping_points > 0) { $info_box_contents[] = array('align' => 'center','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td align="center" class="smalltext">'. TEXT_POINTS_BALANCE . '</tr></td><tr><td class="smalltext" align="center">' . '<b>' . $currencies->format(tep_calc_shopping_pvalue($shopping_points)) . '</b><br>' . TEXT_VALUE_AVAILABLE . '<br><br></tr></td><tr><td align="center" class="smalltext"><a href="' . tep_href_link(FILENAME_MY_POINTS) . '">History'. '</a> | <a href="' . tep_href_link(FILENAME_FAQ) . '">More Info'. '</a></tr></td><tr><td class="smalltext" align="center">' . '<hr>' . TEXT_POINTS_BALANCE . '<br><b>' . number_format($shopping_points,2) . '</b><br>' . TEXT_BALANCE_VALUE . '<br><br></tr></td><tr><td class="smalltext" align="center" class="smalltext"><a href="' . tep_href_link(FILENAME_MY_POINTS) . '">History'. '</a> | <a href="' . tep_href_link(FILENAME_FAQ) . '">More Info'. '</a></td></tr></table>'); } } #### Points/Rewards Module V1.60 EOF #### new infoBox($info_box_contents); ?> </td> </tr> <!-- shopping_cart_eof //-->
rabbitseffort Posted May 20, 2006 Posted May 20, 2006 there are pleanty of cool login boxes in the contributions section--have a look there "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
Recommended Posts
Archived
This topic is now archived and is closed to further replies.