Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
integration:wp_affiliate [2012/06/29 12:14] – created adamintegration:wp_affiliate [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ---- dataentry integration ---- ---- dataentry integration ----
-type          : integration     # do not change this line +type                           : integration #do not change this line 
-supports-foxycart-version-from : 0.6.0    # Minimum required FoxyCart version for this to work +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) +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 +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 +name                           : WP Affiliate Tracking #the name of the integration 
-description   : Add basic affiliate tracking between FoxyCart and WP Affiliate                 +description                    : Add basic affiliate tracking between FoxyCart and WP Affiliate 
-tags_tags     : affiliate, tracking, tutorial                # tags, separated by commas. don't include the "system" here. +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 +date_dt                        : 2012-06-29 #the date in YYYY-MM-DD format 
-version                       # if you have a version for your code, enter it here +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+developer_url                  : http://www.tipsandtricks-hq.com #if you'd like a link back to your site, stick it here
 ---- ----
  
Line 29: Line 29:
   - 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.   - 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.   - 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.<code html>^^receipt_only_begin^^<img border="0" src="http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/post_by_ip.php?secret=XXXX&sale_amt=^^order_total^^&txn_id=^^order_id^^" width="1" height="1">^^receipt_only_end^^</code>+  - Add the following HTML tracking code to your FoxyCart receipt template that you will be creating in step 4.<code html><!-- 1.1 and older --> 
 +^^receipt_only_begin^^<img border="0" src="http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/post_by_ip.php?secret=XXXX&sale_amt=^^order_total^^&txn_id=^^order_id^^" width="1" height="1">^^receipt_only_end^^ 
 + 
 +<!-- 2.0 and newer --> 
 +{% if first_receipt_display %}<img border="0" src="http://www.your-domain.com/wp-content/plugins/wp-affiliate-platform/api/post_by_ip.php?secret=XXXX&sale_amt={{ total_order }}&txn_id={{ transaction_id }}" width="1" height="1">{% endif %}</code>
     * Replace "your-domain" with your actual site URL where you have the affiliate plugin installed     * 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)     * Replace "XXXX" with the actual secret code from the settings menu of this plugin (refer to step 1)
-  - 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 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.

Site Tools