- This topic has 1 reply, 2 voices, and was last updated 13 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate – Integrating with Formstack
Tagged: cookie, form, formstack, integration
Has anyone attempted to integrate WP Affiliate with a Formstack form? I believe we need to have a hidden field that we can somehow prepopulate with the affiliate’s ID. I’m assuming this would also require placing a bit of PHP or javascript on the page?
Any guidance would be greatly appreciated as our site relies heavily on the Formstack forms.
We do not have any integration option with the “Formstack forms” application. We can however tell you how you can retrieve the affiliate ID and add it to a hidden field using PHP. The affiliate ID is stored in a cookie and can be retrieved using the following code:
<?php
$aff_id = $_COOKIE['ap_id'];
echo '<input type="hidden" name="affiliate_id" value="'.$aff_id.'" />';
?>
This 3rd party integration API might come in handy:
http://www.tipsandtricks-hq.com/wordpress-affiliate/awarding-commission-via-http-get-or-post-189