Zen Cart Logo
Forums / All Other Contributions/Addons / Integrating Post Affiliate to Zen Cart

Integrating Post Affiliate to Zen Cart

Locked

Views: 3,107

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
26 Jun 2007, 7:24 PM
#1
capeinfo avatar

capeinfo

New Zenner

Join Date:
Jun 2007
Posts:
9
Plugin Contributions:
0

Integrating Post Affiliate to Zen Cart

I have a really great Affiliate Program (with the most helpful guys I've come across) and I am trying to integrate it to Zen Cart.

The following code needs to be placed in the "checkout_success" page:

<script id="pap_x2s6df8d" src="http://www.capeinfo.co.za/affiliate/scripts/sale.js" type="text/javascript"></script> <script type="text/javascript"><!-- var TotalCost="XXXXXX"; var OrderID="XXXXXX"; var ProductID="XXXXXX"; papSale(); --></script>

The TotalCost is the Sub-Total (minus Tax & Shipping) since that is what affiliate payments are based on.

Where is the best place to put this and what are the codes that need to replace XXXXXX?

I have tried it there (and similar code on the index page), and impressions and click-throughs are being registered, but I can;t work out what needs to replace the XXXXXX's to register costs.

I am an absolute novice at doing this myself, but Zen Cart seems to be a great product so far, and your tutorials and help are outstanding.

Thanks for a fantastic job!

9 Apr 2008, 4:37 PM
#2
fluffythecat avatar

fluffythecat

New Zenner

Join Date:
Jun 2007
Location:
Orange County
Posts:
55
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Hey,
I know this is old but here is some help.

var TotalCost="'.$totalCost.'";
var OrderID="'.$orderId.'";
var ProductID="";

I dont know the ProductID variable.

10 Apr 2008, 10:31 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Integrating Post Affiliate to Zen Cart

Here is the integration code for ANOTHER affiliate software package called JAM by JROX.

Your affiliate team may be able to work out what needs to be done.

##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################
if ((int)$orders_id > 0) {
$JAM = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_gv', 'ot_subtotal', 'ot_group_pricing')");
while (!$JAM->EOF) {
switch ($JAM->fields['class']) {
case 'ot_subtotal':
$order_subtotal = $JAM->fields['value'];
break;
case 'ot_coupon':
$coupon_amount = $JAM->fields['value'];
break;
case 'ot_group_pricing':
$group_pricing_amount = $JAM->fields['value'];
break;
case 'ot_gv':
$gv_amount = $JAM->fields['value'];
break;
}
$JAM->MoveNext();
}
$commissionable_order = ($order_subtotal - $gv_amount - $coupon_amount - $group_pricing_amount);
$commissionable_order = number_format($commissionable_order,2,'.','');
echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"https://www.sa-shop.co.uk/jamaffiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>

</table>";
}
#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################

?>

Furthermore, you may need to consider the following:-

With JAM, the integration code is NOT put into the chackout success page, but into a CUSTOM tpl_footer.php page.

You may need to do something similar. (But don't take my word for it... this is what we do for JAM JROX)

You make a COPY of tpl_footer from:-

includes/templates/template_default/common/tpl_footer.php

and place this copy in

/public_html/includes/templates/YOUR_TEMPLATE/checkout_success/tpl_footer.php

(So you create a page over-ride FOLDER called checkout_success, in your overrides folder)

You paste your affiliate integration code at the BOTTOM of this custom tpl_footer.php file .

16 Apr 2008, 11:07 PM
#4
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Hi Capeinfo,

Did you ever get this to work? I can't get the one I'm using to work right and I'm looking for another one.

Thanks,
Kelly

16 Apr 2008, 11:12 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Grab the free version of JROX JAM - okay, so it only permits a max of 50 affiliates, which is what you'd probably want anyway (until you're making big bucks by which time the paid version of JROX JAM is negligible).

(I have the paid version), and it is exceptional affiliate software - by far the best I've ever used.

The beauty of it is that YOU manage your affiliate program and don't have to pay affiliate hosts the lion's share of your margin!

It's quite easy to install and set up, and as schoolboy shows above, the integration code is written for you...

... easy as pie!

16 Apr 2008, 11:19 PM
#6
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

That is the one I'm using. I can't get it to work right and I've posted numerous times but the replies were vague and didn't help fix my issue.

I don't mind buying it. But not if I can't get it to work.

Thanks,
Kelly

16 Apr 2008, 11:31 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

What's not working, Kelly?

I found it a long (but straightforward) process to install and set up, but my Jrox works perfectly on zencart 1.3.8a .

16 Apr 2008, 11:39 PM
#8
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Well...the only thing I am having an issue with is my upline getting credit for downline sales.
I have three tiers set up. #1 the sponsor---->#2 recruit----->#3
When #2 makes a sale they will get 40% and #1 should get 5%. But only #2 is making any commission. #3 isn't even considered in this scenario as we have yet to fix #2.
I have two programs set up and two groups which may be the problem. But I haven't had any reply to that on the JROX forum.

Thanks,
Kelly

16 Apr 2008, 11:51 PM
#9
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Yes, sorry I can't help you with this as we don't use the tiered structures. We have only one program and one affiliate level.

16 Apr 2008, 11:56 PM
#10
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Thank you anyway.
I appreciate the effort :smile:
But...I can't seem to get any help on the JROX site either. It's frustrating and I have it set up how I want it except for that. Unfortunately it's a biggie and one of the main features I wanted. So not being able to implement it is a major disappointment.

Thanks again,
Kelly

17 Apr 2008, 12:06 AM
#11
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Wow...I just realized how old the original post on this subject is.
Does anyone have this working with their cart?

Thanks,
Kelly

29 May 2009, 2:56 PM
#12
artoo avatar

artoo

New Zenner

Join Date:
May 2009
Location:
French Alps
Posts:
7
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Hi,

I am about to start setting up a zencart shop which will display third parties products. I would like to know if it's possible to integrate the affiliates codes in zencart so my sales are identified by each provider.

Also I was wondering if it's possible that the payment is made directly on the provider website. What would I have to do to redirect orders directly to the suppliers?

Thanks in advance for your enlightened help on these matters, I am not familiate with it yet :blush:

29 May 2009, 4:55 PM
#13
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Integrating Post Affiliate to Zen Cart

Artoo:

Hi,

I am about to start setting up a zencart shop which will display third parties products. I would like to know if it's possible to integrate the affiliates codes in zencart so my sales are identified by each provider.

Also I was wondering if it's possible that the payment is made directly on the provider website. What would I have to do to redirect orders directly to the suppliers?

Thanks in advance for your enlightened help on these matters, I am not familiate with it yet :blush:

Zencart is not designed to do this. It is a shopping cart program in its own right. The manner in which affiliate programs link and track user/sales activity is extremely sophisticated. Additionally, they use their own databases to record this activity. I don't see a way to getting access to these databases (probably different formats, depending on affiliate service) for your user's activity to be grabbed, and then written into ZC.

... just don't think this is even worth considering, to be honest - just far too complicated and not worth the effort.

2 Jun 2009, 6:48 AM
#14
artoo avatar

artoo

New Zenner

Join Date:
May 2009
Location:
French Alps
Posts:
7
Plugin Contributions:
0

Re: Integrating Post Affiliate to Zen Cart

Thanks a lot Schoolboy for this information.
I didn't know if that was possible but now I understand why it's not!

You have been very useful.

Many thanks again :smile: