This code can be used on any of the templates ... the echo is just so you can see the results:
Code:
<?php
// bof: get customers_referral
$chk_customers_referral_query = "SELECT customers_referral from " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
$chk_customers_referral = $db->Execute($chk_customers_referral_query);
echo 'CUSTOMERS_REFERRAL = ' . $chk_customers_referral->fields['customers_referral'];
// eof: get customers_referral
?>
NOTE: be sure to use your templates and overrides ...
Bookmarks