Affiliates Gravity form issue

Hi

I am using affiliates pro plugin…. I want $1 referral Per form submission on cash payment and want 3% commission on pay online but when i select “Enable the Affiliates integration for this form?” then we get commission and when i select “base amount ” then we get $1 but we want both $1 per form submission on cash payment and 3% commission on pay online… How can i do it ?

Thank You.

7 Responses to Affiliates Gravity form issue

  1. patrick May 31, 2017 at 7:38 am #

    Hi

    $1 not added by this code ..$1 is multiply with the commission then add …we have set 3% commission so add 0.3 value not $1

    add_filter( ‘affiliates_gravity_forms_products_amount’, ‘my_affiliates_gravity_forms_products_amount’, 10, 3 );
    function my_affiliates_gravity_forms_products_amount ( $amount, $products, $entry ) {
    return $amount + 1;

    If we set this code then add one dollar

    add_filter( ‘affiliates_gravity_forms_products_amount’, ‘my_affiliates_gravity_forms_products_amount’, 10, 3 );
    function my_affiliates_gravity_forms_products_amount ( $amount, $products, $entry ) {
    return $amount + 33.333333333333333+0.01;

    How can i Solve this ?

    Thanks

    • antonio June 1, 2017 at 6:31 am #

      Hi Patrick,
      Finally what is the solution that you are using? The ‘affiliates_gravity_forms_products_amount’ filter or the last gist code? If you want to add two independent commissions, I think the second solution (gist code) is better.
      Kind Regards,
      Antonio B.

  2. patrick May 30, 2017 at 7:39 am #

    Hi

    Thanks for reply

    I want $1 referral Per form submission on pay at the door and want 3% commission on pay online ….Not both at a time .

    Thank you.

  3. patrick May 30, 2017 at 5:40 am #

    Hi

    How can i use this function for pay online and pay at the door users ?

    Thank you

    • antonio May 30, 2017 at 7:21 am #

      Hi,
      With this filter you can change the $amount calculated, so you can add one extra dollar.
      In this function you can add your extra code to process the payment, but remember that Affiliates doesn’t process the payments.
      Kind Regards,
      Antonio B.

  4. antonio May 29, 2017 at 7:52 pm #

    Hi Patrick,
    By default this option is not available, please have a look at the documentation page.
    You could use the ‘affiliates_gravity_forms_products_amount’ filter, something like this:
    add_filter( 'affiliates_gravity_forms_products_amount', 'my_affiliates_gravity_forms_products_amount', 10, 3 );
    function my_affiliates_gravity_forms_products_amount ( $amount, $products, $entry ) {
    return $amount + 1;
    }

    Kind Regards,
    Antonio B.

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

Share