webman
webman
Offline
0
Do you have any more documentation on the API? What am I supposed to do with this code below?
Really no direction the site?

$conversion_data = array(
"name" => "Custom Order",
"component" => "com_yourcomponent",
"extended_name" => "The item name",
"type" => 1,
"value" => 100 ,
"reference_id" => 234,
"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);
Responses (3)
  • Accepted Answer

    Monday, April 16 2018, 01:16 PM - #Permalink
    0
    hello

    no, sorry, I haven't worked with LMS before.
    The reply is currently minimized Show
  • Accepted Answer

    webman
    webman
    Offline
    Friday, April 13 2018, 02:01 PM - #Permalink
    0
    Great this is more what I was looking for, this looks like pretty strait forward implementation. Do you have any examples of integration into Joomla LMS?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 13 2018, 10:33 AM - #Permalink
    0
    hello

    this code is intended for users that are familiar with Joomla programming.

    this code is supposed to be used on your component's files, where a "sale" or "conversion" would happen. Here you can see what each field is for: https://www.joomlathat.com/documentation/affiliate-tracker/using-the-api-to-create-conversions
    The reply is currently minimized Show
Your Reply