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 post in our forum, but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
It's easy to integrate WP Affiliate with FoxyCart, below is some notes to get you going quickly and easily!
<!-- 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 %}
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.