Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

G-forms integration wp-affiliate

by

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, 10 months ago by robinsonbrook.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • July 23, 2011 at 8:52 am #3869
    robinsonbrook
    Member

    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

    http://www.tipsandtricks-hq.com/wordpress-affiliate/gravity-forms-and-wp-affiliate-platform-integration-385

    but no answer yet…is anyone else having the same problem??

    Please help..

    Brook

    July 23, 2011 at 9:15 pm #34605
    robinsonbrook
    Member

    A little help please.!!!

    July 24, 2011 at 1:21 am #34606
    amin007
    Participant

    If 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 Address

    As 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 Address

    If 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 #34607
    amin007
    Participant

    I 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:

    http://www.tipsandtricks-hq.com/wordpress-affiliate/gravity-forms-and-wp-affiliate-platform-integration-385

    July 24, 2011 at 8:50 am #34608
    robinsonbrook
    Member

    Hi 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 #34609
    robinsonbrook
    Member
    July 24, 2011 at 10:14 am #34610
    robinsonbrook
    Member

    Sweeeeeeeeeeeeeeeeeeeet!!

    I got it working, used firebug to get the id’s.

    THANKS FOR YOUR HELP!!

    Brook

    July 24, 2011 at 10:39 am #34611
    robinsonbrook
    Member

    ok 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 #34612
    amin007
    Participant

    Just 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 #34613
    robinsonbrook
    Member

    Hi 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

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ