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.
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.
Copy the entire foreach loop and replace it with the following code:
Copy the entire foreach loop and replace it with the following code:
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