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

#   How to integrate third party tracking system

##

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 7 months ago [\#11877](#11877) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#11877 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Concerning the authorize.net error, could you try to activate the debug mode ? Then, do an order and look at the payment log file in FTP ?
That should provide more info on the problem.

For the notice: that a problem in the performance_based plugin. The question is, what do you have on the line 15 of that file ?

For the JUser error: Could you do screenshot ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 7 months ago -  15 years 7 months ago [\#12059](#12059) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12059 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

**nicolas wrote:**

> Concerning the authorize.net error, could you try to activate the debug mode ? Then, do an order and look at the payment log file in FTP ?
> That should provide more info on the problem.

I'll get back to this one if it happens again. I did have the shopping cart in debug mode but I can't see any payment logs?.

> For the notice: that a problem in the performance\_based plugin. The question is, what do you have on the line 15 of that file ?

Code:

&lt;?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); // Import library dependencies jimport('joomla.plugin.plugin'); class plgHikashopNotify_performance_based extends JPlugin{ function plgHikashopNotify_performance_based(){ parent::__construct(); // load plugin parameters $this-&gt;_plugin = JPluginHelper::getPlugin( 'hikashop', 'notify_perfomance_based' ); $this-&gt;_params = new JParameter( $this-&gt;_plugin-&gt;params ); } function onAfterOrderUpdate(&amp;$order,&amp;$send_email){ $config=&amp;hikashop::config(); $confirmed = $config-&gt;get('order_confirmed_status'); //if order status is not updated skip if(!isset($order-&gt;order_status)) return true; $class = hikashop::get('class.order'); $dbOrder = $class-&gt;get($order-&gt;order_id);

> For the JUser error: Could you do screenshot ?

Last edit: 15 years 7 months ago by [bthayer](/forum/user/426-bthayer "View bthayer's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 7 months ago [\#12069](#12069) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12069 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

These problems were caused by your performance based plugin which didn't had a correct constructor. The modification I made to it solved both problems.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 7 months ago -  15 years 7 months ago [\#12153](#12153) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12153 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Where is th3e modifications again? I don't see them or my original code above anymore.

Is it OK to use https:// in the curl_init() code?

Last edit: 15 years 7 months ago by [bthayer](/forum/user/426-bthayer "View bthayer's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 7 months ago [\#12169](#12169) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12169 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

The ones in that post: [ www.hikashop.com/support/forum/4-how-to/...m.html?lang=en#11818](http://www.hikashop.com/support/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system.html?lang=en#11818)

curl_init should accept https.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 7 months ago -  15 years 7 months ago [\#12196](#12196) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12196 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Found out that another cookie called roia_cookie was needed. I added this code to the attached plugin:

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Code:

$roia=""; if(isset($_COOKIE['roia_cookie'])) $roia = $_COOKIE['roia_cookie']; else return true;

Part of the message is hidden for the guests. Please log in or register to see it.

and added this to my thank-you page (after making my thank-you page my new return page): Code:

&lt;script type="text/javascript"&gt;document.write('&lt;input type="hidden" name="roia" value="' + roia_cookie + '"&gt;')&lt;/script&gt;

(I also learned that my editor strips off script tags ![:(](/media/kunena/emoticons/5.png ":(") )
This script is in one of my modules to create the cookie: Code:

&lt;!--ROIA #1205--&gt; &lt;script type="text/javascript"&gt;/*&lt;![CDATA[*/ (function(D,u,q,i,p,c){if(D.cookie){q=D.cookie.split(';');for(i=0;i&lt;q.length;++i) {p=q[i].split('=',2);if(/^\s*roia1205$/.test(p[0])){c=p[1];break;}}} if(c){u+=(u.indexOf('?')==-1?'?':';')+'_roia_js_cookie='+c;} D.write('&lt;'+'script type="text/javascript" src="http'+(/^https:/.test(D.URL)?'s':'')+'://'+u+'"&gt;&lt;/'+'script&gt;'); })(document,'net.performance-based.com/j/1205'); /*]]&gt;*/&lt;/script&gt; &lt;!--/ROIA #1205--&gt;

My logic must be flawed. i don't think the cookies are persisting through the authorize transaction to the thank you page.

I am trying to figure this out but my skills are nada. ![:unsure:](/media/kunena/emoticons/22.png ":unsure:")

P.S.
This error is on all my pages at the top. Will it go away when this is all done?

> Notice: Undefined index: QUERY\_STRING in /hermes/bosweb25b/b706/ipg.heatmisersavescom/libraries/joomla/environment/uri.php on line 161

Last edit: 15 years 7 months ago by [bthayer](/forum/user/426-bthayer "View bthayer's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 7 months ago [\#12209](#12209) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12209 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

The way you're doing it, that will add the cookie to the browser of the user but not in the curl request. You need to do something like this:

[ coderscult.com/php/php-curl/2008/05/20/p...url-cookies-example/](http://coderscult.com/php/php-curl/2008/05/20/php-curl-cookies-example/)

For the query string error, the error is a joomla error so I don't know from where it's coming. What you could do is add a @ in front of the $_SERVER so that notice doesn't display.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 7 months ago [\#12327](#12327) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12327 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

1) For the error above - Under Global configuration I had the error reporting level set to maximum. I switched it to none and that stopped the error mentioned above.

2) I am giving up on the notify_performance_based.php plugin.

3a) I am testing my shopping cart in IE and noticed these errors after the Authorize.net transaction completes:
Warning:
Cannot modify header information - headers already sent by (output started at /hermes/bosweb25b/b706/ipg.heatmisersavescom/components/com_hikashop/controllers/checkout.php:901) in /hermes/bosweb25b/b706/ipg.heatmisersavescom/templates/cloudbase/libs/ja.template.helper.php on line 130

3b) Also the page does not redirect back to my site.

4) IE and Firefox - Shopping cart requires 2 clicks to check out.

5) I noticed that the my-orders page requires a login. I'm sure this is expected behavior but really, why? There is already a cookie set and email on file. I know this because when I click on the register link the email field is already filled in.

6) One thing I find annoying while debugging is the next button disappears when i return and want to run another transaction.

7) Your cool!

![8)](/media/kunena/emoticons/2.png "8)") Wouldn't it also be cool to have a debug plugin that creates test transactions &amp; a reset plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago [\#12348](#12348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12348 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

3. Is the order confirmed ? Do you get a "success" email ?
What do you see on the page ?

4. Please turn on the option "Auto submit shipping and payment methods selection"

5. The email is prefilled by your browser automatically as it recognize the field. There is no cookie set by hikashop and no means to know who is accessing the order so hikashop is not able to know which orders should be displayed for who.

6. The next button is removed because you have to reregister first since hikashop considers you as a new customer again in "no registration" mode.

8. How do you see that ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago [\#12453](#12453) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12453 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

**nicolas wrote:**

> 3\. Is the order confirmed ? Do you get a "success" email ?
> What do you see on the page ?

yes
Code:

4. Please turn on the option "Auto submit shipping and payment methods selection"

Done. Just need to test it again

Code:

6. The next button is removed because you have to reregister first since hikashop considers you as a new customer again in "no registration" mode.

> 8\. How do you see that ?

Configure it with a test user name, address, phone, uname and test password and test products. The when you call the plugin it pre-fills the registration form and fills in and opens the shopping cart. The reset plugin changes all orders from that test person to canceled then deletes the orders and the user. It would save a lot of typing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago -  15 years 6 months ago [\#12455](#12455) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12455 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

I just got word from my affiliate manager. He is making progress of the tracking pixel but needs the variables from this code.
&lt;img src="[ net.performance-based.com/l/259?id=](https://net.performance-based.com/l/259?id=)&lt;?php print $order_number;?&gt;;amount=&lt;?php print $dbOrder-&gt;order_full_price-($vat+$dbOrder-&gt;order_shipping_price+$dbOrder-&gt;order_discount_price);" alt="" width="1" height="1" border="0" style="width:1px;height:1px;border:0"
to be kept alive on the Thank you page.

The above code can be viewed in full in the topic history. It is not displaying here in full for some reason.

Last edit: 15 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago [\#12497](#12497) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12497 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Could you change the line:
if(!is_bool($data) &amp;&amp; !empty($data)){
to:
if(is_string($data) &amp;&amp; !empty($data)){

in the file components/com_hikashop/controllers/checkout.php
That should help for 3 a and b.

Thanks for the suggestion for the testing plugins/modules we'll see if and when we cam come up with something.

If you're adding the performance-based image in the thank you page of the authorize.net plugin, then you should be able to use the information in the $_GET variable to get the price and the order number:
$order_number = hikashop::encode($dbOrder);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago [\#12512](#12512) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12512 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

**nicolas wrote:**

> If you're adding the performance-based image in the thank you page of the authorize.net plugin,

Do you mean the page entered in the Return URL field of the Authorize plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago -  15 years 6 months ago [\#12530](#12530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12530 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

I mean the file plugins/hikashoppayment/authorize_thankyou.php

Last edit: 15 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago -  15 years 6 months ago [\#12650](#12650) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12650 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

**nicolas wrote:**

> I mean the file plugins/hikashoppayment/authorize\_thankyou.php

Here's the file edited with the image tag.
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 1.4.8 * @author hikashop.com * @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); //added for performance-based tracking image $plgOrder=$_GET['dbOrder'] $dbOrder = hikashop::encode($plgOrder); //closing tag &lt;div class="hikashop_authorize_thankyou" id="hikashop_authorize_thankyou"&gt; &lt;img src="https://net.performance-based.com/l/259?id=&lt;?php print $dbOrder-&gt;order_number;?&gt;;amount=&lt;?php print $dbOrder-&gt;order_full_price-($vat+$dbOrder-&gt;order_shipping_price+$dbOrder-&gt;order_discount_price);?&gt;" alt="" width="1" height="1" border="0" style="width:1px;height:1px;border:0" /&gt; &lt;span id="hikashop_authorize_thankyou_message" class="hikashop_authorize_thankyou_message"&gt; &lt;?php echo JText::_('THANK_YOU_FOR_PURCHASE'); if(!empty($return_url)){ echo '&lt;br/&gt;&lt;a href="'.$return_url.'"&gt;'.JText::_('GO_BACK_TO_SHOP').'&lt;/a&gt;'; }?&gt; &lt;/span&gt; &lt;/div&gt; &lt;?php if(!empty($return_url)){ $doc =&amp; JFactory::getDocument(); $doc-&gt;addScriptDeclaration("window.addEvent('domready', function() {window.location='". $return_url."'});"); }

For some reason the code does not view but you can see it in the thread history.

The error says:

> Parse error: syntax error, unexpected T\_VARIABLE in /hermes/bosweb25b/b706/ipg.heatmisersavescom/plugins/hikashoppayment/authorize\_thankyou.php on line 13

Are we getting closer?

Last edit: 15 years 6 months ago by [bthayer](/forum/user/426-bthayer "View bthayer's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago [\#12663](#12663) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12663 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Instead of:
$plgOrder=$_GET
$dbOrder = hikashop::encode($plgOrder);

you should have:
$orderClass = hikashop::get('class.order');
$dbOrder = $orderClass-&gt;get((int)@$vars);
$products = $orderClass-&gt;loadProducts($dbOrder);
$vat = 0 ;
foreach($products as $product){
$vat+=$product-&gt;order_product_quantity*$product-&gt;order_product_tax;
} ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago -  15 years 6 months ago [\#12810](#12810) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12810 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

Thank you,

I think we're almost there. My test run returned a conversion message from performance-based

> This is a conversion notification from \[HeatMiserSaves.com\].
>
> A conversion has been made by a visitor referred by publisher 104515.
>
> Conversion information:
>
> ID#: 629145938
> Type: sale
> Amount: $297.00

I just need to clean up some strange errors &amp; we'll be there! (fingers crossed :side: )

This page appears for a second after the credit card goes through but before the thank you page is displayed. I had to be quick to get the Alt-PrtScr.
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/plugin_error.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/plugin_error.png "&#91;img")

- [ ![plugin&#95;error.png](/forum/attachment/870) ](/forum/attachment/870 "plugin&#95;error.png") [ ](/forum/attachment/870?download=1 "plugin&#95;error.png")

Last edit: 15 years 6 months ago by [bthayer](/forum/user/426-bthayer "View bthayer's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago [\#12828](#12828) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12828 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

You need to change the line:
foreach($products as $product){

to:
foreach($dbOrder-&gt;products as $product){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bthayer](/forum/user/426-bthayer "View bthayer's Profile")**
- [![bthayer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar426.jpg)](/forum/user/426-bthayer "View bthayer's Profile")
- [ Offline](/forum/user/426-bthayer)
- Today's Standards For Yesterday's Furnace

Less More

- Posts: 73
- Thank you received: 0
-
-
-
- [](http://www.HeatMiserSaves.com)
-

15 years 6 months ago [\#12875](#12875) by [bthayer](/forum/user/426-bthayer "View bthayer's Profile")  Replied by *[bthayer](/forum/user/426-bthayer "View bthayer's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12875 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

message from Warren at performance-based; "yeah nicolas"

He also said, "just noticed that the OrderID that hikapshop assigns is not coming through"

Mechanically things look like they are working but now I need to fix this error:
**Warning**: Cannot modify header information - headers already sent by (out started at &lt;path&gt;/ipg.heatmisersaves.com/components/com_hikashop/controllers/checkout.php:901) in **&lt;path&gt;/ipg.heatmisersaves.com/templates/cloudbase/libs/ja.template.helper.php** on line **130**.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 months ago [\#12887](#12887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to integrate third party tracking system](/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system?start=20#12887 "We are integrating our affiliate program with Shareasale. They gave us a pixel code that we need to place on our shopping cart. Below is the code:  We need to populate it with dynamic variable for: AMOUNTOFSALE  TRACKINGNUMBER  TYPEOFTRANSACTION  Can you help us identify the variable codes?")*

In your code you have:
print $dbOrder-&gt;order_number;

but you don't have any code to generate it... You should replace it by:
print hikashop::encode($dbOrder);

For the warning, you can just edit the file templates/cloudbase/libs/ja.template.helper.php and add a @ at the beginning to hide the message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwMjQ0LWhvdy10by1pbnRlZ3JhdGUtdGhpcmQtcGFydHktdHJhY2tpbmctc3lzdGVtP2xhbmc9ZW4mc3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.470 seconds

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

[](#top)
