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.

Pricing Labels

  1. travin
    Member

    I have looked for some time but just not sure where to look. I am using the paypal/user registration for my product purchase. I have a custom plugin written to link my gravity forms to idevaffiliate. I need to add pricing to this plugin. All I need to do is assign the pricing field to a placeholder.

    So here is my question: Other than the standard product field ids, is there standard method to access the product's price or total? I am using the gform_user_registered action. Something like this: $entry['price']

    Thanks.

    Posted 13 years ago on Sunday August 7, 2011 | Permalink
  2. travin
    Member

    Little help? I am looking for something like this except 'form id' is the price assigned to the particular form:

    if($entry['form_id'] != 6)
    return;

    Is there anything available like this?

    Posted 13 years ago on Tuesday August 23, 2011 | Permalink
  3. Try $entry["payment_amount"].
    I think that is what you are looking for.

    Posted 13 years ago on Tuesday August 23, 2011 | Permalink
  4. $entry["payment_amount"] is only set when the payment is actually made. If your PayPal feed does not have the option to "Only register user after payment is made", you can use the following to get the total.

    $total = GFCommon::get_order_total($form, $entry);
    Posted 13 years ago on Tuesday August 23, 2011 | Permalink