- Posts: 5
- Thank you received: 0
Need help for Third Party Affiliate Integration
12 years 9 months ago #134579
by iux
Need help for Third Party Affiliate Integration was created by iux
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
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.
12 years 9 months ago #134597
by nicolas
Replied by nicolas on topic Need help for Third Party Affiliate Integration
Hi,
Here is the joomla documentation which explains how to add javascript in the head of the document:
docs.joomla.org/Adding_JavaScript
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.190 seconds