Zen Cart Logo
Forums / General Questions / where 2 put PaidOnResults affiliate tracking code

where 2 put PaidOnResults affiliate tracking code

Locked

Views: 3,060

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
7 Feb 2008, 12:27 PM
#1
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

where 2 put PaidOnResults affiliate tracking code

Hi there,

I've searched the forum to find out where to put my affiliate tracking code for the network "Paid on Results" but haven't been able to find the answer?

There's lots of mention of JRox but surely this isn't the only affiliate management network you can use with zencart?

Basically Paid on Results tell me to put a bit of code they gave me onto the checkout success page of my website so they can track which affiliate created which order. I had assumed it might be includes/languages/english/html_includes/ceckout_success.php but having read what I have on the forum I now wonder if i need to put it in lots of places and also make changes to the DB.

Can anyone point me in the right direction?

thanks
confused :blink:

7 Feb 2008, 9:27 PM
#2
jmelwak avatar

jmelwak

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

i am looking for the same thing, jrox i setup and cannot get it to work install went fine but when trying to access admin area nothing happens, :huh:

7 Feb 2008, 9:30 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

I'll try ...

I just installed Jrox (it is truly a remarkable and fantastic program! Well worth the few $).

If the logic that applies to Jrox applies universally, then you need to create a "custom" footer for the "checkout_success" process.

First (if you are using a custom template) create a FOLDER called checkout_success in this path...

includes/templates/YOUR_TEMPLATE/checkout_success/

Second, make a COPY of tpl_footer (found in templates/default_template/templates).

Put this COPY into the checkout_success folder you created in step 1.

Now, open this copy of tpl_footer in a GOOD text editor (such as Crimson Editor).

Then PASTE the code at the bottom of this file - making sure that you don't foul up the php tags, etc.

SAVE the file and that should do the trick. NB: YOU MAY HAVE TO CONFIGURE OTHER BITS AS WELL, but as I don't know your affiliate software I can't help.

What you have done is create a PAGE OVER-RIDE (by creating a FOLDER with the PAGE NAME "checkout_success"). The tpl_footer in this folder will ONLY apply when checkout_success is accessed.

Good luck.

PS: if you have hassles, get Jrox - it's really very good (and no, I don't have shares in Jrox!)

7 Feb 2008, 9:33 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

jmelwak:

i am looking for the same thing, jrox i setup and cannot get it to work install went fine but when trying to access admin area nothing happens, :huh:

Jrox is not difficult... But there's a LOT to consider. Work carefully and slowly and FOLLOW ALL INSTRUCTIONS to the letter.

I kept a notepad handy and a progress checklist. It took me 2 hours to configure, (before any customisation), but by making sure I'd followed all the steps it now works a treat.

15 Feb 2008, 3:06 PM
#5
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

Hi there,

I'm still having problems with this.

I've done all that SchoolBoy told (thanks for replying and helping by the way) and that gets the code on the page as was needed. But there are variables that I'm meant to be replacing in the tracking code that the network supplied aren't doing what they're supposed to.

here is the tracking code they gave me:

<!-- Paid on Results Tracking Code, 08/07/2003 --> <script language=JavaScript src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=java&merchant_id=298&country=GB&sale_id=CUSTOM-1&primary=sale_id&sale_data=CUSTOM-2&P1=1,TOTAL"></script>

<noscript><img src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=img&merchant_id=298&country=GB&sale_id=CUSTOM-1&primary=sale_id&sale_data=CUSTOM-2&P1=1,TOTAL" width="10" height="10" border="0"></noscript>

<!-- Paid on Results Tracking Code, 08/07/2003 -->

I'm meant to be replacing CUSTOM-1 with some kind of unique reference for the current sale - ie the order number.
CUSTOM-2 with the customer name.
TOTAL with the Total value of the sale (ExVAT&Shipping)

In the tracking code I replaced the text "CUSTOM-1" with the text "orders_id". customers_name for CUSTOM-2 and ot_subtotal for the TOTAL. But apparently this still doesn't work.

Heres the last thing they said to me:


Unfortunately neither test sale worked. The variables are not being replaced with the
order value. I think you need to find out how to customise the final page in the order
process (which is your thank you page) with ZenCart and how you can display the order
number and order value on this page. We can then integrate the tracking code into that
page.

When ordering from most sites the final "thank you" page will contain such information for
the customer to make a note of, so I don't see why ZenCart should be any different.


Can anyone please tell me what I'm meant to do or what I'm doing wrong. I've been at this for ages and its really frustrating me.

Please help me!
thanks
David

18 Feb 2008, 11:59 AM
#6
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

Has anyone got any ideas on this? Obviously you can't see my face, but I promise you, I'm crying...

18 Feb 2008, 12:10 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

Have you thought about Jrox JAM? This allows you to take absolute control over your affiliate programmes.

It's exceptionally good software, and even though it takes some time to install, configure and customise, the instructions are excellent, the support is excellent and the results are great.

Also, you'll not have to part with more commission (the bit you'll pay over to PaidOnResults) and will either be able to make your commission rates more attractive to your affiliates, or claw back a couple of percentage points for yourself.

(PS. I have NO commercial interest in Jrox - I just find their software and support extremely good.)

18 Feb 2008, 12:25 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: where 2 put PaidOnResults affiliate tracking code

Here is MY NEW tracking code for JROX. I have NO IDEA if any of it can apply to PaidOnResults, but perhaps if you send it to them, they could point you in the right direction.

------------------------
// bof JROX integration
if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
  if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
      $_SESSION['affiliate_order_id'] = $zv_orders_id;
     $commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
     echo '<script language="javascript" type="text/javascript" src="http://www.yourdomain.com/affiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '"></script>';
    }
}
// eof JROX integration
-------------------------