Jump to content

3rd Party Affiliate tracking code


Pete Nice

Recommended Posts

Hi,

 

I'm trying to setup a 3rd party affiliate system and they have provided PHP tracking code to add to the order page.

 

I intend to create a smarty plugin with the tracking code and include it into the relevant TPL file - only issue is I'm not sure which TPL to add it in to as there are various for the order process.

 

Any ideas?

 

EDIT: I guess it must be the order-confirmation.tpl

Edited by Pete Nice (see edit history)
Link to comment
Share on other sites

Ok so I've now successfully got the tracking code implemented in the correct place. I've created a Smarty plugin and included it on the order-confirmation page.

 

The issue I have now is I need set two variables in the tracking code - the total amount of the sale without VAT and shipping and the order number.

 

How can I assign those two values to variable within my Smarty plugin?

 

Any help would be appreciated.

Link to comment
Share on other sites

I've worked this out myself - I've had to rewrite the tracking code into the OrderConfirmationController class.

I understand that you mange to implement your code....

Please help me with this tracking code:

" <iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='http://event.2parale.ro/events/salecheck?amount=__ADD_SALE_VALUE__&campaign_unique=d9e2b5f11&confirm=544ebd4ee2940587&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>"

 

Where to put it? And how to set those 3 variables??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...