0
Hi,

We are looking to track submissions through RS Forms Pro, can anyone advise how we implement the API within this extension?

Our thought process is to have the marketing material link directly to the form in question using the affiliate ID string, and then the form submission confirms/records the submission in Affiliate Tracker against the appropriate affiliate ID.

Many thanks,

Chris
Responses (6)
  • Accepted Answer

    Wednesday, April 20 2016, 03:06 PM - #Permalink
    1
    you would need to see where RS Forms Pro handles the submission, and there is where you can include our API code to track that submission

    here is the explanation on how to use the API: http://www.joomlathat.com/documentation/affiliate-tracker/using-the-api-to-create-conversions
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 20 2016, 03:19 PM - #Permalink
    0
    Thanks, I spotted that already, I'll take some advice from RS Forms Pro.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 21 2016, 10:03 AM - #Permalink
    0
    Hi,

    RS Forms Pro has places on each form config to add php scripts to be called after submission - if I add the code (altered I hope to be correct for RS Forms Pro) to the post-submission section, I get the following error:


    Fatal error: require_once(): Failed opening required '/home/a00000cc/public_html/checkDSadministratorDScomponentsDScom_affiliatetrackerDStablesDSconversion.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a00000cc/public_html/check/components/com_affiliatetracker/helpers/helpers.php on line 84


    Do I perhaps need to add something else? Maybe this isn't PHP script that I am adding?

    $conversion_data = array(
    "name" => "CMLF Submission",
    "component" => "com_rsform",
    "extended_name" => "Check My Legal Fees form submission",
    "type" => 1,
    "value" => 100 ,
    "reference_id" => 123,
    "approved" => 1,
    );

    require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_affiliatetracker'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helpers.php');
    AffiliateHelper::create_conversion($conversion_data, $user_id);


    Thanks for any additional help.

    Chris
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 21 2016, 11:17 AM - #Permalink
    0
    you are doing it correctly. just add this little piece of code before the "$conversion_data":

    if(!defined('DS')){
    define('DS',DIRECTORY_SEPARATOR);
    }
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, April 23 2016, 07:16 AM - #Permalink
    0
    Thanks, that removes the error :)

    However, nothing is being logged in Affiliate Tracker against the relevant referrer ID, is there any way I can troubleshoot things at all?

    Chris
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, April 23 2016, 07:26 AM - #Permalink
    0
    Sussed it, I hadn't enabled the Affiliate Tracker plugin, all working great now, many thanks for the help :)

    Chris
    The reply is currently minimized Show
Your Reply