[Skip to main content](#vessel-content)

#   Need help for Third Party Affiliate Integration

##

- **[iux](/forum/user/13330-iux "View iux's Profile")**
- [![iux's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13330-iux "View iux's Profile") Topic Author
- [ Offline](/forum/user/13330-iux)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 11 months ago [\#134579](#134579) by [iux](/forum/user/13330-iux "View iux's Profile")  *[Need help for Third Party Affiliate Integration](/forum/39-affilation/863978-need-help-for-third-party-affiliate-integration#134579 "Hi,  i'm trying to integrate one affiliate marketing script to my shop. Following some other post on this forum i have successfully &quot;printed&quot; 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  tag, it works. How can i display my code inside the  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  it doesn't works..  This is my code:  echo '';  Thanks,  Ugo")* was created by *[iux](/forum/user/13330-iux "View iux's Profile")*

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 &lt;head&gt;&lt;/head&gt; tag, it works.
How can i display my code inside the &lt;head&gt;&lt;/head&gt; 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 &lt;body&gt; it doesn't works..

This is my code:

echo '&lt;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&gt;&lt;/script&gt;';

Thanks,

Ugo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODYzOTc4LW5lZWQtaGVscC1mb3ItdGhpcmQtcGFydHktYWZmaWxpYXRlLWludGVncmF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

12 years 11 months ago [\#134597](#134597) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Need help for Third Party Affiliate Integration](/forum/39-affilation/863978-need-help-for-third-party-affiliate-integration#134597 "Hi,  i'm trying to integrate one affiliate marketing script to my shop. Following some other post on this forum i have successfully &quot;printed&quot; 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  tag, it works. How can i display my code inside the  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  it doesn't works..  This is my code:  echo '';  Thanks,  Ugo")*

Hi,

Here is the joomla documentation which explains how to add javascript in the head of the document:
[ docs.joomla.org/Adding\_JavaScript](http://docs.joomla.org/Adding_JavaScript)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vODYzOTc4LW5lZWQtaGVscC1mb3ItdGhpcmQtcGFydHktYWZmaWxpYXRlLWludGVncmF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
