Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

affiliate notifications


taburner

Recommended Posts

  • 1 month later...

I have set this up in my store. I had to hand code it in...

 

In this section of code on affiliate_signup.php around line 278:

 

	  tep_session_register('affiliate_id');
  $affiliate_email = $a_email_address;
  $affiliate_name = $a_firstname . ' ' . $a_lastname;
  tep_session_register('affiliate_email');
  tep_session_register('affiliate_name');

  tep_redirect(tep_href_link(FILENAME_AFFILIATE_SIGNUP_OK, '', 'SSL'));
}
 }

 

Change it to something like this in:

 

	  tep_session_register('affiliate_id');
  $affiliate_email = $a_email_address;
  $affiliate_name = $a_firstname . ' ' . $a_lastname;
  tep_session_register('affiliate_email');
  tep_session_register('affiliate_name');

// added PHPMail fuction				
mail('', 'Email Subject', 
"$affiliate_name has just signed up as an Affiliate with the email address $affiliate_email.", 
"To: [email protected]\n" . 
"From: YourName <[email protected]>\n" . 
"MIME-Version: 1.0\n" . 
"Content-type: text/html; charset=iso-8859-1");
// end added PHPMail function

tep_redirect(tep_href_link(FILENAME_AFFILIATE_SIGNUP_OK, '', 'SSL'));
}
 }

 

There is another way to do it, but you would get a copy of the welcome message that they recieve with login, etc. and I personally don't like doing that. Hope this helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...