OK, in create_account.php
Around line 449:
Code:
if ($source == '9999') {
zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' => $_SESSION['customer_id'], 'sources_other_name' => $source_other));
}
This code seems to write data (spirces_Other) to the table IF and ONLY IF $source == "9999")
This is only executed if the Source_other is selected by user....
So what if I remove the conditional:
Code:
$db->Execute($sql);
zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' => $_SESSION['customer_id'], 'sources_other_name' => $source_other));
As the cart ALWAYS saves the TYPE of referral (Google, Yahoo, 'other'), that's ALWAYS saved....
Now, with the removeal of the conditional, the cart will ALWAYS save to the database table sources_other with EVERY referral, I *believe*.