How do I pass information from Gravity Forms to affiliate notification email

Posted in

I need to pass the entered values of a registration form from Gravity Forms to the affiliate notification email.

How do I find the field variable to include in the email? I see on other posts how to do that with Contact Form 7, but I’m not sure how to do it with Gravity Forms.

9 Responses to How do I pass information from Gravity Forms to affiliate notification email

  1. Doug December 23, 2014 at 1:44 pm #

    I have deactivated all the plugins, except for those that are necessary, and it still sends two emails.

    Any new information on passing form fields to affiliate notification emails?

    • kento January 8, 2015 at 9:09 pm #

      Hi Doug,

      The updated version is about to be released, you should receive a notification once it’s available for download (should be within a day).

      The new version allows to include the field values by indicating tokens that indicate the field ID. For example, if you have three fields with IDs 1, 2 and 3 on your form, you can use something like that to include the values in the notifications:

      First field : [1]
      Second field : [2]
      Third field : [3]

      Thanks for suggesting this, I hope you will find it useful.


    • kento January 8, 2015 at 9:11 pm #

      PS – regarding the duplicate emails, this is not happening with any of our test installations so there must be something with your particular setup.

  2. Doug December 18, 2014 at 12:26 pm #

    Thanks for bringing these together. My highest priority is getting the field values from gravity forms to the affiliate notification email.

    The next priority is finding out why two emails are being sent to the affiliate.

    • kento December 18, 2014 at 7:17 pm #

      Thanks for the admin access, I’ve tested the form at and also get two notification emails. This might be due to another plugin interfering in the process … could you please try reducing the number of active plugins to the minimum (i.e. Gravity Forms, Affiliates and the integration) and test with those only? This should only produce one notification email. This would help to rule out any other causes not related to plugins. If that produces only one (expected) notification, proceed to enable other plugins until the two notification emails come up.

  3. kento December 18, 2014 at 11:42 am #

    Hi Doug,

    So we have it for the reference, I’m quoting yor previous comments here, I think these are still useful to understand what we’re trying to achieve:

    Submitted on 2014/12/04 at 6:30 pm

    We have the following plugins installed on our wordpress site.
    • Affiliates Pro
    • Contact Form 7
    • Affiliates Contact Form 7 Integration

    When we register a user with an affiliate link the affiliates are supposed to be notified of that

    Affiliates are getting duplicate emails on user registrations, the first one is empty i.e. tokens/slugs are not filled with data, and the second one is fine.

    Another thing is we have added this function to theme’s function.php file.

    (edited: code)

    WPCF7_Submission class is used from contact form 7 plugin
    contact-form-7\includes\ submission.php

    , WPCF7_Submission ->mail, in the mail method of this class we have a code snippet which may lead us to track why email is being duplicated
    $additional_mail = apply_filters( ‘wpcf7_additional_mail’,
    $additional_mail, $contact_form );

    After that we are left blank, as this email is being sent to referrals. We tried to understand class Affiliates_Notifications from affiliate pro plugin
    affiliates-pro\lib\ext\includes\ class-affiliates-notifications.php

    as it is picking the referral emails ids + headers + template, but the code is minified + variable and constant naming is very hard to understand for debugging. Do you have the code structured in Affiliate Pro in different ways so that we can better trace the issue? Do you have any paramaters/rules for the notification extension(class Affiliates_Notifications) in affiliate pro?

    Please suggest what we might consider to better troubleshoot this issue.

    Here is a link to the php files related to this issue.

    Submitted on 2014/12/09 at 1:27 am

    So I decided to purchase the Gravity Forms developer version to see if we could solve this issue. After configuring everything I still have the same issue. The affiliate is getting two emails sent.

    However, When editing the form settings under Form Setting:Affiliates and the Referral settings check box is deselected “Enable the Affiliates integration for this form?” it will only send one email. I assume this will not have the ability to send the token values in the email.

    I may stay with Gravity forms over Contact Form 7, but it would be very helpful to get a response to this issue. I find it interesting that both Contact Form 7 and Gravity Forms have the same issue.

    Also, What field label/Token do I add in the notification email for Affiliate Pro? I’m not sure how to pass the Name and email to the affiliate so they know the name of the lead they just received.

    Any help would be greatly appreciated.

    Submitted on 2014/12/11 at 8:56 pm | In reply to kento.

    I’ve switched to Gravity Forms, because I couldn’t get Contact Form 7 to work. I was able to pass the tokens to the notification with Contact Form 7.

    How do I pass a token from Gravity Forms to the notification email? Where do I find the token from Gravity Forms that I can place in the notification email?

  4. Doug December 15, 2014 at 1:12 pm #

    Thanks for looking into this. We appreciate your efforts and we’ll look for your update.

    We were using Contact Form 7 and because of your recommendation we decided to try Gravity Forms. This is a critical feature that is needed for us in order to pass the lead information to the affiliate.

    Also, one other issue. We are still getting two emails sent to the affiliate, This has happened with Contact Form 7 and now Gravity Forms.

    • kento December 17, 2014 at 11:01 pm #

      Thanks for your feedback on that Doug (also for your patience, I know you’ve been waiting for an answer regarding your previous attempt to use CF7).

      Regarding the duplicate notification emails, can I have a look at your site’s admin section please? I’d appreciate it if you could send credentials to support at itthinx dot com with a link to this topic.

  5. kento December 15, 2014 at 11:26 am #

    Hi Doug,

    Currently you can’t show the field values in the notification email that is sent to the affiliate. I’ll be happy to review the implementation to see if we can have them included though. It was postponed because of technical issues related to how these values can be obtained right after the form submission, but if there’s a way we can get these values through Gravity Forms’ API at that moment now, then it can be included.

    I’ll post an update on this here after reviewing it.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account