include post affiliate pro referral id in the email

itaddy 12 Sep, 2010
greetings!

i really hope you people can help me.. i like chronoforms a lot and has been using it almost to all the sites i have developed.

i have a problem tho. one of my clients used affiliate pro and wanted to track who referred the clients who filled up the forms (powered by chronoforms) about their service.

this is the sample link from the affiliate:
http://samplesite.com/index.php?option=com_content&view=article&id=62&a_aid=12454&a_bid=bc93eed5

that link will forward to a chronoform that will let clients inquire. now i would like also to include in the email the affiliate id which is: a_aid=12454 from the affiliate link when the client hit the submit button. is it possible?

please enlighten me.. thank you very much.
GreyHead 12 Sep, 2010
Hi itaddy,

You'll need to capture the affilaite id in the Form HTML and put it into a hidden input. Then it's available to the ChronoForms back-end processing.
<?php
if ( !$mainframe->isSite() ) { return; }
$a_id = JRequest::getInt('a_id', '', 'get');
?>
<input type='hidden' name='a_id' id='a_id' value='<?php echo $a_id; ?>' />

Then put {a_id} in the Email template

Bob
itaddy 12 Sep, 2010
thank you very much for replying right away sir! it really helped me a lot! you are the best! thanks thanks thanks and a lot of thanks!!! 😀 😀 😀
This topic is locked and no more replies can be posted.