Home Integration Methods Interspire Shopping Cart

Interspire Shopping Cart

This integration method by By Dustin Holdiman will help you to integrate PAP4 with Interspire Shopping Cart 5.0+
1
What is this script for?

This setup was created to track each product and quantity of product ordered in Interspire Shopping Cart. What this script does is to post each product ordered as a separate sale to PAP4. This way, if a user purchases 3 different products and 2 of each of those products, 6 sales will be registered with PAP4 and you will know the correct commission to pay the affiliate.

2
How to setup PAP4 to work with this script

First you need to create a campaign for EACH item that should has a different commission. So for instance, Product A get a $10 commission, Product B is $12 and Product C is $8. I will create 3 campaigns and for assign the Product ID to each campaign that is set by Interspire. By default you can find this information in the database by looking in the table isc_products and checking the productid cell. After you have setup your campaigns that's all you need to do with PAP4 to continue.

3
How to setup Interspire Shopping Cart
You need to edit the file class.order.php. This script is found in your Interspire install directory in includes/classes/class.order.php. Scroll the file down to around line 178. You are looking for the foreach loop that is commented. This is the code:
4
Replacing the code (applies to version 5.x of Interspire Shopping Cart)

Copy the entire foreach loop and replace it with the following code:

Now simply save the file.
5
Replacing the code (applies to version 6.x of Interspire Shopping Cart)

Copy the entire foreach loop and replace it with the following code:

Now simply save the file.
6
Add functions for computing discount (applies to version 6.x of Interspire Shopping Cart)
You are editting the file class.order.php still. Add the following code right before line: "private function ThanksForYourOrder()"
7
Setting up the Interspire settings
Open up your administration panel in Interspire, goto Settings / Affiliate Settings and paste the following code into the textarea.

Or if you do not wish to use javascript to report to PAP4, you can use the IMG SRC tag by replacing %%JAVA%% with %%IMG_CODE%%

NOTE:
Using PayPal integration plugin with Interspire integration

It is not recomment to use Interpsire integration with PayPal (or another payment processor supported by Interspire) plugin. This can lead to doubled transactions You need to set up sale fraud protection to avoid them.
Interspire is handling all transactions processing its self, and because of that, you should use ony one integration plugin for it. If this integration is not suitable for you try
alternative one.

Any questions / comments / suggestions please email Dustin dmanz013@gmail.com

Also, there is a conversation at forum about interspire:

http://forum.qualityunit.com/showthread.php?t=3452