Need help for Third Party Affiliate Integration

  • Posts: 5
  • Thank you received: 0
10 years 11 months ago #134579

Hi,

i'm trying to integrate one affiliate marketing script to my shop.
Following some other post on this forum i have successfully "printed" the order id and amount of the order.
Now my problem is that the script won't be triggered if i use it inside end.php view. (I use bank transfer)
If i move the script to index.php <head></head> tag, it works.
How can i display my code inside the <head></head> of the end.php page?
I need to call this script only on step3 page of my shop, but if i use it inside the <body> it doesn't works..


This is my code:

echo '<script id="_ABCD" data-rid="XX" data-key2="ASDASD123123" data-tx="'.$order_id.'" data-amount="'.$price.'" data-currency="EUR" data-email="'.$email.'" src="//ssosodkdkskd.js" async defer></script>';

Thanks,

Ugo

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
10 years 11 months ago #134597

Hi,

Here is the joomla documentation which explains how to add javascript in the head of the document:
docs.joomla.org/Adding_JavaScript

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum