PDA

View Full Version : CubeCart Integration


AlanT
13th April 2006, 06:45 PM
Integrating Post Affiliate Pro into CubeCart can be as easy as uploading a couple of files and adding the javascipt click tracking to a single template.

http://www.PowerKeysPub.com/PostAffiliatePro.zip

Once you upload the contents of the above zip file to your CubeCart installation, you will find that PAP is now an option in your CC admin panel. Simply enable the module and set the URL to your base PAP directory, such as "/affiliate". No need for a trailing slash.

After this is done, PAP will track all sales from your CubeCart store.


To track incoming clicks, the easiest way is to insert the javascript integration code (from your PAP merchant panel) into

/skins/{your skin folder}/styleTemplates/global/index.tpl


Now, PAP will track all incoming clicks to any page in your store. Let your affiliates link to the home page, to product pages, or even information pages and all clicks are tracked.


Tested on CubeCart versions 3.0.10 through 3.0.16.

kenlyle
25th July 2006, 10:14 PM
http://secunia.com/advisories/18519/

Texasbiz
29th June 2007, 06:45 PM
I have installed Post Affiliate Pro and the CubeCart plugin.
The plugin URL is set to the full: http://somehost.com.go/
Is this correct? or just /go ?

Which javascript code do I use from the PAP intergration
wizard? CubeCart is not listed. The General Solution wants
me to enter price and such. I want to sell many digital
downloads, not just one.


<script id="pap_x2s6df8d" src="http://somehost.com/go/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--

var TotalCost="XXXXXX.XX";
var OrderID="XXXXXX";
var ProductID="XXXXXX";
papSale();
--></script>


Please advise which code to use.

It is my understanding the the CubeCart plugin tracks my
affiliates automatically and there is nothing else to do. But,
the javascript tracks the hits? Am I understanding this right?

Thank you in advance for any help.

Terry

AlanT
29th June 2007, 07:05 PM
As mentioned in my original post, the integration module will track your sales.

All you need to add to the store templates is the click tracking code (Step 2).

It will look something like: (new style)

<script id="pap_x2s6df8d" src="http://www.yoursite.com/affiliate/scripts/track.js" type="text/javascript">
</script>

<script type="text/javascript">
<!--
papTrack();
//-->
</script>

Using the full URL in the configuration screen is okay, or you can use the relative reference as I did.

Texasbiz
29th June 2007, 07:15 PM
Only a few more question and I am on my way:)

I put the script in just the index.tpl
(/public_html/skins/Killer/styleTemplates/global/)
Is there any others that you would suggest?

Also, the script goes somewhere between the
<body></body> tags right?

In you example, you have script id="pap_x2s6df8d"
Is this something that I need to change? Sorry, I just
do not understand.

Thanks again. I really appreciate it.

Terry

AlanT
29th June 2007, 08:11 PM
Go into YOUR merchant panel, click the Integraion Wizard menu item, click the link to Step 2, and copy the code that is presented there.

Insert the code into whichever templates you are using for your store. If you use more than one, insert it in each and every one you use. Most people only use one skin.

And YES, between the body tags AS THE INTEGRATION WIZARD TELLS YOU!

Please - just follow instructions and you won't have any problems.

marline
29th June 2007, 09:24 PM
I'm trying out the free version of post affiliates, is there a mod for cubecart intergtration?


Go into YOUR merchant panel, click the Integraion Wizard menu item, click the link to Step 2, and copy the code that is presented there.

Insert the code into whichever templates you are using for your store. If you use more than one, insert it in each and every one you use. Most people only use one skin.

And YES, between the body tags AS THE INTEGRATION WIZARD TELLS YOU!

Please - just follow instructions and you won't have any problems.

AlanT
29th June 2007, 09:32 PM
Unfortunately, the free version of Post Affiliate will not work with the current CubeCart integration module.

As far as I know, no-one has created one for it.

marline
29th June 2007, 09:35 PM
is there a way maybe to tweek it to work?

And if not a I decide to purchase the post affiliate pro ver. will it work with the new version fo cubecart 4.0.

And does the post affiliate pro require, ioncube loaders or zend to work on my server?


Unfortunately, the free version of Post Affiliate will not work with the current CubeCart integration module.

As far as I know, no-one has created one for it.

AlanT
29th June 2007, 09:42 PM
At the current time, I cannot guarantee that it will work with CC 4 (which is in beta at this time), but everything looks good.

marline
29th June 2007, 09:51 PM
I'm a beta rester for cubecart 4.0, and I can't get past the ioncube loaders part, yahoo does not support it, or I do not know how to load them correctly.

Does affiliate pro require ioncube loader or zend?

At the current time, I cannot guarantee that it will work with CC 4 (which is in beta at this time), but everything looks good.

AlanT
29th June 2007, 10:00 PM
PAP requires neither Ioncube nor Zend.

I'm sure there's a page somewhere here that specifies what is required on your server.

marline
29th June 2007, 10:12 PM
Thank you, I found it , and just bought it, maybe check back with the post to see if I run to any problems trying to get it intergrated to cubecart.
thank again.

Is the cubecart intergration from the post the same one that is on cubecart.org

PAP requires neither Ioncube nor Zend.

I'm sure there's a page somewhere here that specifies what is required on your server.

AlanT
29th June 2007, 11:05 PM
Yes, the integration module is the same in both places.

marline
29th June 2007, 11:44 PM
Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /mystore/admin/modules/index.php on line 30

Warning: main(): Failed opening '../../../includes/ini.inc.php' for inclusion (include_path='.:/usr/lib/php') in /mystore/admin/modules/index.php on line 30
Ok here is what im getting errors:

Warning: main(../../../includes/global.inc.php): failed to open stream: No such file or directory in /mystore/admin/modules/index.php on line 31

Warning: main(): Failed opening '../../../includes/global.inc.php' for inclusion (include_path='.:/usr/lib/php') in /mystore/admin/modules/index.php on line 31

Warning: main(../../../classes/db.inc.php): failed to open stream: No such file or directory in /mystore/admin/modules/index.php on line 32

Fatal error: main(): Failed opening required '../../../classes/db.inc.php' (include_path='.:/usr/lib/php') in /mystore/admin/modules/index.php on line 32
I'm not sure what I did wrong!

Yes, the integration module is the same in both places.

AlanT
30th June 2007, 12:04 AM
You'll need to provide more information before I have ANY chance of helping you.

What page were you on?
What did you click?
Did you check this before you uploaded the files?
Did you upload the files to the right place?
etc.....


The file referenced in the error messages (mystore/admin/modules/index.php) has nothing to do with the integration module.

marline
30th June 2007, 11:18 PM
Ok, I got it going I think the index page was messed up or something.

Should I apply the fix that is also listed in the other post(security)?

I wiil now try the javascript too!
Thanks

You'll need to provide more information before I have ANY chance of helping you.

What page were you on?
What did you click?
Did you check this before you uploaded the files?
Did you upload the files to the right place?
etc.....


The file referenced in the error messages (mystore/admin/modules/index.php) has nothing to do with the integration module.