---- dataentry integration ----
type : integration #do not change this line
supports-foxycart-version-from : #Minimum required FoxyCart version for this to work
supports-foxycart-version-to : #Last FoxyCart version that supports this (leave empty if unknown)
systems : WP Affiliate #the system(s) that the integration is for, separated with commas if more than one
name : WP Affiliate Tracking #the name of the integration
description : Add basic affiliate tracking between FoxyCart and WP Affiliate
tags : affiliate, tracking, tutorial #tags, separated by commas. don't include the "system" here.
date_dt : 2012-06-29 #the date in YYYY-MM-DD format
version : #if you have a version for your code, enter it here
developer_url : http://www.tipsandtricks-hq.com #if you'd like a link back to your site, stick it here
----
====== WP Affiliate ======
//**Please note:**//
The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
===== Description =====
It's easy to integrate [[http://www.tipsandtricks-hq.com/wordpress-affiliate-platform-plugin-simple-affiliate-program-for-wordpress-blogsite-1474|WP Affiliate]] with FoxyCart, below is some notes to get you going quickly and easily!
===== Installation =====
- Go to the settings menu of the affiliate plugin and check the "Enable Remote Post" checkbox. Take note of the "Secret Word" from this section.
- Save the changes by hitting the update settings button.
- Add the following HTML tracking code to your FoxyCart receipt template that you will be creating in step 4.
^^receipt_only_begin^^
^^receipt_only_end^^
{% if first_receipt_display %}
{% endif %}
* Replace "your-domain" with your actual site URL where you have the affiliate plugin installed
* Replace "XXXX" with the actual secret code from the settings menu of this plugin (refer to step 1)
- If you're on **version 1.1 or older**, create a separate receipt template in your FoxyCart admin. Include your modified code from step 3 at the bottom of your template. If you're on **version 2.0 or newer**, navigate to the configuration section of your store's FoxyCart administration, and add the code to the "footer" textarea for the configuration option "Add custom header and footer code to your templates".
- If you're on **version 2.0**, by default the receipt will be served securely over ''https:/%%/%%''. The ''img'' source in the code above is insecure over ''http:%%/%%/'' - and any insecure assets will be blocked by browsers for a secure page. To fix that, if you have an SSL certificate on your domain, change the URL for the source to begin with ''https:/%%/%%'' instead. If not, on the configuration page of your store's FoxyCart administration, check the option within the "Receipt" section to serve the receipt over http instead of https.