Jump to content

Recommended Posts

I am trying to insert the tracking code of an affiliate I am abuot to start working with. They have their own system and publishers, but I need to insert their tracking code in my site.

 

I have two questions:

  1. Where should I insert the code? Is it at the end of the order_confirmation.tpl?
  2. How can I make variable oder values and id's? I include here the code for your review.

<iframe src="https://www.xxxxxxx.com/scripts/check_sale.php?ordervalue=0&order_id=2&advertiser_id=926" scrolling="no" frameborder="0" width="1" height="1"></iframe>

 

Any help would be extremelly appreciated guys!!!

Thanks a lot in advance

 

Rasmy

Link to comment
Share on other sites

Hi Rasmy. I recently did it for a client. You can indeed add it at the end of order_confirmation. However, since different modules assign different variables, my suggestion would e to create a new one for this only purpose. Hook it to OrderConfirmation, then get and assign these variabes (I did in on 1.4 but I believe they're the same)

 

 

'total_amount' => $params['total_to_pay'],

'id_order' => $params['objOrder']->id

 

Should work :)

Link to comment
Share on other sites

  • 3 weeks later...

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...