Quote Originally Posted by fepb View Post
After hours scouring this forum and the mod files, I just wanted to share a solution I've found for:

Admin showing --none-- under "Referred by" regardless of selected source upon account creation.

I'm using Fast and Easy Checkout by Numinix so this probably applies to those of you using COWOA as well.

Found this post on the Numinix forum and replaced lines 540-559 in /modules/MY_TEMPLATE/create_account.php with the following:

Code:
// FEC MODIFICATION WITH REFERRAL CODE (HOW DID YOU HEAR ABOUT US MOD)
      $_SESSION['sendto'] = $_SESSION['cart_address_id'] = (int)$address_id;
    }
    $_SESSION['shipping'] = ''; 
    $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
                          (customers_info_id, customers_info_number_of_logons,
                           customers_info_date_account_created, customers_info_source_id)
              values ('" . (int)$_SESSION['customer_id'] . "', '0', now(), '" . (int)$source . "')";

    $db->Execute($sql);
     if ($source == '9999') {
         zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' =>  $_SESSION['customer_id'], 'sources_other_name' => $source_other));
      }
//      $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
//                          (customers_info_id, customers_info_number_of_logons,
//                           customers_info_date_account_created)
//              values ('" . (int)$_SESSION['customer_id'] . "', '0', now())";
//
//      $db->Execute($sql);
//rmh referral end
The referral source now shows up in the customers table as well as order details page.

Good luck.

Versions: 1.3.9h and FEC 1.9.4.
I am trying hard to get these two to work together but I can not follow the steps you did merging the files. What exactly did you replace with this posted code? Which file did you start out with? The version in FEC for how did you hear about us? FEC puts the create_account.php in the YOUR_TEMPLATE folder as where Referral mod puts it directly in to modules. Please help, maybe upload the merged file with instruction where to put it. Thank you.