General integration: Add an invisible one pixel image tag to the "thank you" page of your shopping cart or order processing system, like this: Affiliate Tracking The words in brackets should be replaced with the codes your shopping cart is using, which can be very different in different systems, for example: %amount% instead of {price}. The following parameters can be used: invoice - unique invoice number for this order price - the amount on which the affiliate commission should be calculated customerid - the ID of your customer in your shopping cart system email - the email address of your customer firstname - the first name of your customer lastname - the last name of your customer product - a description of what the customer bought wholesale - set this to "1" to treat the order as a wholesale order, with different commission than retail Only the invoice and price parameters are required. ---------------------------------------------------------------------------- Authorize.Net SIM: 1 Configure Authorize.net Silent order post Login to your Authorize.net account. Open the page menu->account->settings->Silent post URL. Specify the URL to your AShop Affiliate authorizenet.php script. For example http://www.yoursite.com/ashopaffiliate/authorizenet.php After you are done, click Submit button. 2 Edit your SIM forms You must add one custom field to all your SIM forms like this:
You should also add the following code to your page, below the form code mentioned above: Note: If you have more than one form on the page, only add the script code once, not once per form. ---------------------------------------------------------------------------- PayPal: PayPal can be integrated through their IPN system and it can be used with your Buy Now buttons. Note: If you use PayPal as a processing system in your shopping cart, you need to integrate with your cart, not using these steps. 1 Integration code Add the following code to your PayPal button form, changing the "www.yoursite.com/ashopaffiliate" part to the actual URL where your AShop Affiliate is installed: Example of updated PayPal form:
Another example with a different type of button code:
This is all that is required. Now whenever there's sale, PayPal will use its IPN notification to inform the sale tracking script about the transaction, which will generate commission for the affiliate. Note: If you have more buttons at one page, you should use only the custom field code in each button. The script tag should be inserted only once per page just like for Authorize.Net.