How does Enable your tracking affiliate scripts work?

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

How does Enable your tracking affiliate scripts work?

Postby ptrouw@.....nl » Thu Mar 12, 2015 2:49 pm

I have Trade tracker code which I want to add in the Tracking part. So if a status is changing to "Confirmed" I want to trigger this TradeTracker code.
But it is unclear what kind of code is allowed.
I have php code but that doesn't seem to work. When I finish a checkout the code is shown at to top of the screen, instead of executing this code. Any ideas?

So this is a piece of the code:
<?php
$lang = JFactory::getLanguage();
$language_tag = $lang->getTag();

/** Begin TradeTracker Virtuemart code **/
if ($language_tag == "de-DE") {
$tt_campaignID = '1234';
$tt_productID = '12345';
$tt_trackingGroupID = '';
$tt_scriptTag = include_once ('tradetracker.php');
echo $tt_scriptTag;
ptrouw@.....nl
 
Posts: 18
Joined: Fri Dec 05, 2014 4:42 pm

Re: How does Enable your tracking affiliate scripts work?

Postby admin » Mon Mar 16, 2015 12:38 pm

hello paul,i can implement these for you - pls send me the php file and the link for the API of your affiliate.

the simplest way to implement this, is to copy of of the already existing OPC plugins in /components/com_onepage/trackers/php/ (both php and xml file) and put the code into the php file.


the code section in opc is used purely for html code or javascript and the php does not get excuted from there.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x