Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › G-forms integration wp-affiliate
Tagged: gforms, gforms integration, integration gforms
- This topic has 9 replies, 2 voices, and was last updated 13 years, 4 months ago by robinsonbrook.
-
AuthorPosts
-
July 23, 2011 at 8:52 am #3869robinsonbrookMember
Hi peopls,
Im having trouble integrating the latest version of g-forms, the forms are working but wp-affiliate not catching the leads, apart from one form, but this form throws all kinds of info in, like the ip address as the price etc, and i have changed the input fields but to no avail. I followed the instructions for the integration but to no avail, im using the latest version of affiliate and g-forms…
Please can someone help…. i also posted here
but no answer yet…is anyone else having the same problem??
Please help..
Brook
July 23, 2011 at 9:15 pm #34605robinsonbrookMemberA little help please.!!!
July 24, 2011 at 1:21 am #34606amin007ParticipantIf you are not a developer then start with one form first. Trying to integrate multiple forms at once is a recipe for disasters as you can easily mess up the “if” and “else” condition blocks. Get one form working with a clean block of code then you can replicate it for your other forms.
From your explanation it looks like you may not have been assigning the correct form field with the PHP variable.
The following block of code gets the values from the gravity forms input fields. It is very important that you assign the correct number that corresponds to the actual input field in the “input_X” (X being the number that corresponds to the input field).
$reference = $_POST["input_X"]; //Unique ID
$clientdate = (date ("Y-m-d"));
$clienttime = (date ("H:i:s"));
$buyer_email = $_POST["input_X"]; //Email
$ipaddress = $_POST["input_X"]; // Client IP AddressAs a test you can hardcode some values into these fields instead of taking them from the form (this is just for temporary testing). You can use the following and then check if the values go to the correct fields after you submit the form:
$reference = "unique-id-123"; //Unique ID
$clientdate = (date ("Y-m-d"));
$clienttime = (date ("H:i:s"));
$buyer_email = "test@gmail.com"; //Email
$ipaddress = "10.10.2.1"; // Client IP AddressIf the above hard coded values go to where it is suppose to then you know that it is just a matter of figuring out how to correctly hook the correct “input_X” number from the form that you created.
July 24, 2011 at 2:00 am #34607amin007ParticipantI actually ended up updating the documentation for the gravity forms integration in an effort to make it simpler. Please have a look at the updated documentation and let me know if the examples are easier to understand now:
July 24, 2011 at 8:50 am #34608robinsonbrookMemberHi Amin,
Thanks for this i will try this for sure…. question though, on the examples i see we are using the shortcode to invoke the form onto the page, does this matter or not if we use the gforms widget where you can just select a form??
Cheers again for the help, very much appreciated.
Brook
July 24, 2011 at 9:32 am #34609robinsonbrookMemberJuly 24, 2011 at 10:14 am #34610robinsonbrookMemberSweeeeeeeeeeeeeeeeeeeet!!
I got it working, used firebug to get the id’s.
THANKS FOR YOUR HELP!!
Brook
July 24, 2011 at 10:39 am #34611robinsonbrookMemberok so not everything is sweet…lol…one small problem, im trying to get the reference to say
$reference = $form;
the id of this form is “11” but if i change it to the above nothing gets put in the reference with in the leads section..
Is there a way i can change this bit so i can place in the reference what the actual form is rather than “11”??
Hope i can, cheers again and again for all the help.
Brook
July 25, 2011 at 12:17 am #34612amin007ParticipantJust use a hardcoded string as your reference like the following:
$reference = "pdf-print-form";
This “if” condition only gets executed if this form is submitted so it is perfectly safe to hard code any value that is specific to this form only.
FYI – You don’t have to use firebug to get the form’s ID. Every gravity from has a unique ID (Similar to eStore Products). When you go to your “Edit Form” menu you can see the ID of each form (I think if you hover over the edit link for the form it shows you the ID in the status bar).
July 25, 2011 at 10:05 am #34613robinsonbrookMemberHi Amin,
Awsome…thank you very much for all the support. Great products to go with great support, what else can ya ask for….
with regards the ID though, i meant the actual input field number of the email, it is this that was catching me out, because i created the form, then put the email in and moved it to position 2, but the input field still remained “10” if that makes sense, was confusing and im sure you will get other people doing this….if not i am a dumb ass.
Cheers again for all the help.
Brook
-
AuthorPosts
- You must be logged in to reply to this topic.