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.

Multiple subscription mode(s)

  1. mike365
    Member

    I am allowing my clients to use my software for a monthly or yearly costs. How would I set this up since the PayPal addon only seems to allow one payment mode. I set the 'Price' field as a 'multiple choice' so they either could select $19 a month or $199 a year. Again, it only seemed to allow me to offer one billing more - either monthly OR yearly.

    Can I manually send users to different PayPal URLs based on the payment mode they select?

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  2. Currently the PayPal Add-On only supports one transaction type per form. We are going to look into supporting multiple transaction types using the Conditional option to determine which one to execute, however it poses some logistical issues we need to work out and it may introduce user error problems because if you create multiple PayPal Feeds for one form and don't properly configure the Conditional then it isn't going to work properly. Currently it's only possible using multiple forms.

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  3. mike365
    Member

    ...and you cannot set a condition for the form submission redirect based on a users selection? or set up a multiple page form?

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  4. Conditional redirects are not currently possible. It is a feature we plan on adding, conditional confirmations that can be returned based on form field values. So it is a feature we are adding.

    If you wanted to conditionally redirect the user now you'd have to do so as a customization. Create a custom PHP page that handles the redirect based on a query string value passed to it. Then configure your form to redirect to this PHP page and pass the form field value via the query string. Your custom PHP would then redirect based on the value passed to it.

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  5. mike365
    Member

    Thanks Carl, Gravity Forms still ROCKS!

    Posted 13 years ago on Thursday July 7, 2011 | Permalink
  6. This would be awesome as well!

    Posted 13 years ago on Tuesday July 26, 2011 | Permalink
  7. Party Foul, we need dynamic subscription lengths ASAP :)

    Gotta do a workaround which feels dirty, don't make me feel dirty :(

    Posted 13 years ago on Thursday November 24, 2011 | Permalink
  8. Anyone know if this could be circumvented / overridden in pre-processing?

    Posted 13 years ago on Thursday November 24, 2011 | Permalink
  9. rochow
    Member

    I am having a problem with this too. I'm using the paypal_query hook to change the subscription length based on a dropdown on the form: http://www.gravityhelp.com/documentation/page/Gform_paypal_query

    The problem is $form and $entry are blank? Trying to figure out why...

    function update_paypal_query($query_string,$form,$entry){
    print_r($query_string);
    print_r($form);
    print_r($entry);
    }

    Query string works fine, form and entry are blank :/

    Posted 13 years ago on Thursday November 24, 2011 | Permalink
  10. rochow
    Member

    I've narrowed it down first. Inside the function, it's only getting the first variable passed to it:

    For example if I update it to this (paypal.php, line 1675):

    apply_filters("gform_paypal_query", $form, $query_string, $entry);

    I get the form fine, but am missing the query_string. Weird. I'm not sure why. I'm going to modify the plugin for now to compile the 3 arrays into 1 array which I'll pass to the function, if you are able to debug and/or tell me what I've missed, I'll be able to put it back to normal :)

    WP 3.2.1, GF 1.6.1, Paypal 1.3.1

    Posted 13 years ago on Thursday November 24, 2011 | Permalink
  11. Going to play with your code rochow and let you know what I think.

    Posted 13 years ago on Friday November 25, 2011 | Permalink
  12. rochow
    Member

    Any update guys? I've had to modify paypal.php on 2 sites now so that it passes all the variables across. I'm reasonably confident it's a bug and not me being blonde :)

    Posted 12 years ago on Sunday December 4, 2011 | Permalink