Zen Cart Logo
Forums / General Questions / Has anyone integrated jrox affiliate system with zencart?

Has anyone integrated jrox affiliate system with zencart?

Locked

Views: 16,339

Results 21 to 40 of 60
This thread is locked. New replies are disabled.
5 Nov 2006, 9:32 PM
#21
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

Has anyone integrated jrox affiliate system with zencart?

jroxonline:

Level 1 Affiliate - 10% (if you set Level 3 payouts at 10%)

Level 2 Affiliate - 20% (if you set Level 2 payouts at 20%)

Level 3 Affiliate - 50% (if you set Level 1 payouts at 50%)

Hopefully this answers your question.

So, Can I use these affiliate levels independent of each other? Or do I just create different programs?

Here's what I want to accomplish:

Program 1 = Free Affiliate Program = 10% commission for any referrals

Program 2 = $25 Annual Fee = 20% commission for any referrals

Program 3 = $50 Annual Fee = 30% commission plus Gift Certificate for $20.00

Then I would create an Afflilate Category in my zen cart and set the costs to purchase the ones with annual fees there. Once purchased they will be provided with a link to access the signup page and based on their subscription purchase I can set their program via admin when I approve it.

Will this work? I'm not really interested in the tiers so much. I would rather have them have to pay an annual fee to obtain the higher commissions, and then have no tiers.

5 Nov 2006, 9:37 PM
#22
jroxonline avatar

jroxonline

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

signs:

So, Can I use these affiliate levels independent of each other? Or do I just create different programs?

Here's what I want to accomplish:

Program 1 = Free Affiliate Program = 10% commission for any referrals

Program 2 = $25 Annual Fee = 20% commission for any referrals

Program 3 = $50 Annual Fee = 30% commission plus Gift Certificate for $20.00

Then I would create an Afflilate Category in my zen cart and set the costs to purchase the ones with annual fees there. Once purchased they will be provided with a link to access the signup page and based on their subscription purchase I can set their program via admin when I approve it.

Will this work? I'm not really interested in the tiers so much. I would rather have them have to pay an annual fee to obtain the higher commissions, and then have no tiers.

You can probably get this done, but you would have to create 3 different programs. When they pay, then you can change them to a new program. However, this can only be done manually (changing affiliate programs). Also, they will have to change their affiliate links, as the affiliate links are different for each program.

5 Nov 2006, 9:47 PM
#23
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

That will work perfectly then because I can just set it up for admin approval required and verify their purchase before setting their program. That will work out just the way I want it to. GREAT MOD!!! Thanks for your contribution. If it works out well I will upgrade.

27 Nov 2006, 10:47 PM
#24
13moons avatar

13moons

Zen Follower

Join Date:
Nov 2003
Posts:
111
Plugin Contributions:
1

Re: Has anyone integrated jrox affiliate system with zencart?

Will the jrox code for zen-cart work in the check out success header file of 1.2x?

27 Nov 2006, 11:35 PM
#25
jroxonline avatar

jroxonline

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

13moons:

Will the jrox code for zen-cart work in the check out success header file of 1.2x?

The tpl_footer.php file provided with JAM will only work with 1.3+. If you need the code for 1.2x, you will need to manually edit the core files.

28 Nov 2006, 1:01 AM
#26
13moons avatar

13moons

Zen Follower

Join Date:
Nov 2003
Posts:
111
Plugin Contributions:
1

Re: Has anyone integrated jrox affiliate system with zencart?

Thanks for getting back so quick. So here's my previous idev script that went into the checkout success header file (that worked fine until I had to move hosts and something went pooey in the whole idev program):

$idev = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'");
$idev_zen_1 = (number_format($idev->fields['value'],2));
$idev_zen_2 = $idev->fields['orders_id'];
print "<script language="JavaScript" type="text/javascript"

src="http://www.mysite.com/idevaffiliate/sale.php?idev_zen_1=$idev_zen_1&idev_zen_2=$idev_zen_2"></script>";

and here's the zen 1.3 script for jrox:

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_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;

}

$JAM->MoveNext();

}

$commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);

$commissionable_order = number_format($commissionable_order,2,'.',',');

echo "<script language="JavaScript" type="text/javascript"

src="http://www.mysite.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id"></script>

I can almost figure how to convert it but I'm not knowledgeable enough to get it going right. Any takers!
Thanks

28 Nov 2006, 3:41 AM
#27
jroxonline avatar

jroxonline

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

Here you go:

$jam1 = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'");
$jam_zen_1 = (number_format($jam1->fields['value'],2));
$jam_zen_2 = $jam1->fields['orders_id'];
print "<script language="JavaScript" type="text/javascript"

src="http://www.mysite.com/affiliates/sale.php?amount=$jam_zen_1&trans_id=$jam_zen_2"></script>";

Just change the mysite.com/affiliates to point to your JAM install

28 Nov 2006, 2:10 PM
#28
13moons avatar

13moons

Zen Follower

Join Date:
Nov 2003
Posts:
111
Plugin Contributions:
1

Re: Has anyone integrated jrox affiliate system with zencart?

jroxonline, Thank You! It went perfectly on the test run. Now to get all my idev affiliates over to jrox.
So far jrox looks like a great program. And with this kind of response here at the zen-cart forums and the jrox forums too, I am really impressed.
Thanks again

3 Jan 2007, 12:12 AM
#29
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

I have a question about the footer file.

I just put the jrox code into my custom footer file. Should I now delete the footer file from the common folder in my template?

Also I'm assuming since the file download from Jrox was written for v1.30+ that it is safe to remove the table tags in it which are no longer used in v1.37?

thank you,

betty

3 Jan 2007, 1:09 AM
#30
jroxonline avatar

jroxonline

New Zenner

Join Date:
Aug 2006
Posts:
46
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

You should not have to delete any other file as the tpl_footer.php file will override your current one anyway.

You can remove the table tags as those are not used.

29 Jan 2007, 9:12 PM
#31
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

jroxonline:

You should not have to delete any other file as the tpl_footer.php file will override your current one anyway.

You can remove the table tags as those are not used.

I installed JROX on a store recently and am a bit confused about which footer file is actually being used.

The custom tpl_footer.php that I downloaded from the link in the JROX help file is in the:

includes/templates/custom/checkout_success directory
and the other tpl_footer.php is in the:

includes/templates/custom/common directory.

Since I read on here that the one in the checkout success folder would override the one in the common directory. I had hard coded a banner where I wanted it in the JROX tpl_footer.php file.

I found out when I added another footer banner through the banner manager in Admin that the footer file being read is the one in the common folder. It was confirmed as the new banner wasn't centered so I added a div class in the custom/common/tpl_footer.php file. Plus the new banner showed up despite the coding of the other banner still being in the checkout_success/tpl_footer.php file.

What am/did I do wrong?

http://www.buysoul.com is the store address.

thank you,

betty

29 Jan 2007, 11:00 PM
#32
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Has anyone integrated jrox affiliate system with zencart?

is custom the name of your template

the jrox footer should be in

includes/templates/YOUR TEMPLATE/checkout_success/tpl_footer.php

29 Jan 2007, 11:06 PM
#33
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

Merlinpa1969:

is custom the name of your template

the jrox footer should be in

includes/templates/YOUR TEMPLATE/checkout_success/tpl_footer.php

Hi Merlin,

Yes my template name is custom and the tpl_footer.php I downloaded from jrox is in my includes/templates/custom/checkout_success/ directory.

However prior to installing the affiliate program, I had modified the tpl_footer.php which comes in Zencart and it is in myincludes/templates/custom/common/ directory.

The store appears to be using the one in the common directory and not the one in check_out success.

betty

29 Jan 2007, 11:09 PM
#34
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Has anyone integrated jrox affiliate system with zencart?

It will ONLY use this footer on checkout_success

you can check to make sure,
go through with a test purchase, then when you get to checkout susccess view source, look at the bottom,
you should see the affiliate tracking code

29 Jan 2007, 11:39 PM
#35
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

Well I tried to checkout with the Express pay and got a bunch of errors, so went back and checked out with the regular IPN and was able to check out however when I checked my source to frin the Jrox statements I
Checked my source and have this message:

<br />
<b>Warning</b>:  main(includes/templates/custom/checkout_success//google_analytics.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />
<br />
<b>Warning</b>:  main(includes/templates/custom/checkout_success//google_analytics.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />
<br />
<b>Fatal error</b>:  main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/custom/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>>/path/removed/public_html/store/includes/templates/custom/common/tpl_main_page.php</b> on line <b>184</b><br />

The error I got with express pay was an error page with just the error on it (which may not be from Jrox) that prevented checkout:

Warning: reset() [function.reset]: Passed variable is not an array or object in /path/removed/public_html/store/includes/modules/order_total/ot_tax.php on line 38

Warning: Variable passed to each() is not an array or object in /path/removed/public_html/store/includes/modules/order_total/ot_tax.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /path/removed/public_html/store/includes/modules/order_total/ot_tax.php:38) in /path/removed/public_html/store/includes/functions/functions_general.php on line 44

uhh.....HELP Please!!

betty

30 Jan 2007, 12:52 AM
#36
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Has anyone integrated jrox affiliate system with zencart?

Dont know if jrox works with express

for the header errror open this file
/ot_tax.php put cursor after last ?> hit delete 10 times and save then reupload,

please look close at the other error

// shouldnt be in the path,

but since you are running c-panel. I would suggest dumping that crack google code and use the tracking feature in your c-panel under web/ftp stats its awstats

30 Jan 2007, 2:03 AM
#37
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

Merlinpa1969:

Dont know if jrox works with express

for the header errror open this file
/ot_tax.php put cursor after last ?> hit delete 10 times and save then reupload,

please look close at the other error

// shouldnt be in the path,

but since you are running c-panel. I would suggest dumping that crack google code and use the tracking feature in your c-panel under web/ftp stats its awstats

Well, if Jrox doesn't work with express, maybe that's the code I need to dump as well.

I added the google analytics for the site owner as he wouldn't know his way around a control panel with a tour guide sitting next to him. Google Analytics is just a simple log-in.

Thank you for the fix on the ot_tax.php, I'll retry it a little later.

Thank you again Merlin,

betty

30 Jan 2007, 3:41 PM
#38
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

I still get the ot_tax.php error if I try to checkout with Paypal Express.

If I turn it off and use the IPN it goes through fine, except for the google analyzer message in the source code (which I've posted about in the mod thread).

betty

30 Jan 2007, 4:02 PM
#39
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Has anyone integrated jrox affiliate system with zencart?

you will need to add an if statement around that google code,

so that it dosnt track on ssl pages

30 Jan 2007, 4:10 PM
#40
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Has anyone integrated jrox affiliate system with zencart?

Merlinpa1969:

you will need to add an if statement around that google code,

so that it dosnt track on ssl pages

:blush: I don't know how to do that :blush: