PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

customization to the beginning of the value of the product selected

  1. Need help to add user entered data to the front of the value of the product selected. Using the paypal addon.

    I need the item name saved in the paypal transaction to include user entered data on the form same from that connects to paypal.

    I understand the gform_post_submission hook would be used to append the value of the web site field to the beginning of the value of the product selected field.

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  2. I'll have one of our developers take a look and come up with a code example so that you and other users will know how to do this using the available API hooks. It may take some time as they will be doing it in between higher priority work as this is considered a customization.

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  3. Hi Befound,

    The hook you're going to want to use is the gform_product_info filter.

    Here is an additional example where you can add a personalized message to the product name when sending to PayPal:

    http://pastie.org/2233181

    You'll see some instructions inline in the code. The end result when submitted to PayPal would look something like this: http://grab.by/ayXC

    Posted 13 years ago on Monday July 18, 2011 | Permalink
  4. There was a small issue with the previously provided code. It only worked for the product data sent to PayPal. It did not work for product data sent in the email notifications and entry detail view. Here is an updated snippet:

    http://pastie.org/2315902

    Posted 13 years ago on Wednesday August 3, 2011 | Permalink

This topic has been resolved and has been closed to new replies.