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.

GF PayPal add-on - Passing Values and Dynamic Pricing by User Role?

  1. I'm using the PayPal add-on in an event RSVP form (not a user registration form). The event is open to the public, and the form has a dropdown product field for selecting from the following "descriptions" (with corresponding hidden "values"):

    1) Single Guest Registration (One)
    2) Two Guest Registrations (Two)
    3) Three Guest Registrations (Three)
    4) Four Guest Registrations (Four)

    Everything is setup correctly and has been tested with both non-users and with registered users using dynamic population for required fields.

    Specific to the post-submission redirection to PayPal, the product description on the checkout page is "One, Two, Three..." rather than display more detailed information, like "Single Guest Registration for August 2nd Event". I have tried swapping the Descriptions/Values in the advanced tab of the Product field, but it still only displays "One, Two, Three..." on the PayPal checkout page. Any thoughts on how to accomplish this?

    A second issue I can't seem to figure out is how to dynamically populate different pricing levels for registered users by custom role type. I am using Members for role managment and the custom types exist in my usermeta table under wp_capabilities. Is it possible to dynamically call different pricing within the same form by verifying user role?

    Thanks in advance for any assistance you can provide.

    Posted 8 years ago on Thursday July 21, 2011 | Permalink
  2. Sorry, forgot to post a link to the form: http://www.slf-carolinas.org/events/breakfast-with-lou-solomon/.

    Posted 8 years ago on Thursday July 21, 2011 | Permalink
  3. It looks like you were able to figure out how to get the naming correct by using the Value. Your use is a little different because you are using a single Product Field drop down as both the Product and the Quantity the way you are doing it.

    Each item in a Product Field Drop Down *IS* a Product so it's designed so that the choices are the product names. But because you are using it for Quantity selection also, you have to be creative which I see you were by using the Value to put the longer name.

    Another option would have been to add a Product Field to your form, set it as a Single Product and disable the Quantity field. Use the Field Label to name the Product so it's like "Breakfast with Lou Solomon" and give it a price of $45.00

    Then add a Quantity field to your form, configure it so it's a Dropdown field and enter the quantity choices as numeric values and give it a field label of Total Number of Attendees. You would end up with something like this:

    http://i.imgur.com/053bm.png

    As for dynamic pricing, it would be possible but it would require custom code to implement. How familiar are you with customizing Gravity Forms via custom code using the API hooks?

    Posted 8 years ago on Thursday July 21, 2011 | Permalink
  4. Thanks for the suggestion, Carl. I was able to use a condition based on "Pay at the door" or "Pay online", and after testing with the new value everything appears correct at checkout. Issue #1 resolved.

    I'm not an expert coder, but good enough to be dangerous if pointed in the right direction. For example, I was able to integrate GF User Reg with Theme My Login, Mingle Forum and Members List so that all user profile fields populate from and update to the same usermeta tables instead of separate arrays. Which hooks are you thinking of?

    Posted 8 years ago on Thursday July 21, 2011 | Permalink
  5. The easiest way to do what you want to do is going to be to configure things the way I described above. Then you could dynamically set the price of the base product, and then they could choose the number of people as a quantity field.

    Would you be able to switch things around so it is setup like this or have you already started taking reservations using these fields?

    This will determine how you implement the code... let me know.

    Posted 8 years ago on Thursday July 21, 2011 | Permalink
  6. This is already being used for reservations, but I can implement your recommendation on future forms. Thanks for your feedback, Carl.

    Posted 8 years ago on Monday July 25, 2011 | Permalink

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