Home Forums Plugin Support AffiliateWP Affiliate Sign Up Products SUP & MLM Conflict? Referred Affiliates are in the wrong downline.

14 replies, 2 voices Last updated by  Christian Freeman 2 months, 2 weeks ago
  • Stanlay Forker
    Participant
    @neurosocks
    #10552

    We have the following situation:

    1. We create a Subscription Product inside WooCommerce.
    1. We select this Product as a SignUp Product taht don’t generates commissions.
    3. Customers that buy that product are registrated as affiliats. That looks good. (SUP works now)
    4. If the new Customer (Affiliate A) refer the same product to a new customer, that customer (Affiliate B) should get into the Downline from Affiliate A.

    But: The Referer is recored correctly to the Affiliate A (inside Woo) but Affiliate B is not in the Downline from Affiliate A. Instead Affiliate B is inside the Downline from the default Affiliate.

    Notice: The MLM works perfectly, when the Affiliate is registered thru a Gravity Forms. So the error seams to be a conflict with the both plugins.

    Hope you can understand what i mean. How can we fix that issue quickly? We have to launch our Affiliate System by 08/01.

    Kind regards
    Stanlay

  • Christian Freeman
    Participant
    @christianf
    #10557

    Hi Stanlay,

    I’m glad to hear that the WooCommerce version compatibility update is working smoothly now.

    How exactly did you test this? To be more specific, how are you tracking your referrals?

    Are you using the referring affiliate’s referral link, or are you using another AffiliateWP add-on such as Checkout Referrals to choose the referring affiliate during checkout?

  • Stanlay Forker
    Participant
    @neurosocks
    #10559

    Hi Christian,

    thanks for your reply. We’re using the default referral link provided by AffiliateWP. We test the hole thing with to different laptops and both in incognito mode. As written above, the referral is correctly tracked but the new created Affiliate Partner by WooCommerce (SignUpProduct) belongs to the wrong downline. Any suggestions?

  • Stanlay Forker
    Participant
    @neurosocks
    #10560

    Is it maybe a problem with the matrix settings?
    We want that one Affiliate can have an unlimited width and only one line down.

    Attachments:
    You must be logged in to view attached files.
  • Stanlay Forker
    Participant
    @neurosocks
    #10562
    This reply has been marked as private.
  • Stanlay Forker
    Participant
    @neurosocks
    #10569

    Hey Christian.. What can we do to get priority support? We need to get this working correctly. Maybe we can book you for a private Support/Consultation?

  • Stanlay Forker
    Participant
    @neurosocks
    #10570
    This reply has been marked as private.
  • Christian Freeman
    Participant
    @christianf
    #10572

    Hi Stanlay,

    Sorry for the delay. It’s definitely not your settings, you have that setup correctly based on what you described your ideal config. to be.

    You are right, the MLM plugin uses the default referral tracking system to obtain the referring affiliate via the tracking cookie, and if it can’t find one, it uses the Default Affiliate or one of their Downline Affiliates. But Affiliate Connections take place at the point when the new affiliate is being inserted into the database.

    So in this case, the affiliate account is created after the WC Order is marked Complete. And if the order is completed at a later time, it can’t pickup the tracking cookie. The fastest way to get around this, is to use the AffiliateWP Lifetime Commissions add-on. The MLM plugin has a special integration which will set the Parent Affiliate as the Lifetime Affiliate (The one who referred them). Note: There’s a setting found in Affiliates > Integrations > Sync Lifetime Affiliate, that you should set to “Lifetime Affiliate as Referrer”.

    Plus, this will ensure that the new affiliate is forever linked to the referring affiliate for any further purchases they make. I highly recommend this plugin, especially for an MLM setup. Otherwise, Parent Affiliates will only receive commissions from their Sub Affiliate’s purchases for as long as the tracking cookie is set to last.

    Beyond that, I’m going to look into creating an integration between SUP and MLM, for a more long-term solution to this.

  • Stanlay Forker
    Participant
    @neurosocks
    #10573

    Thanks for your reply Christian.. We installed the Lifetime Commission Plugin and run a new test. Now a fatal error is produced saying:

    PHP Fatal error: Uncaught Error: Call to undefined function get_affiliate_id_from_customer_email() in /***/wp-content/plugins/affiliatewp-multi-level-marketing/includes/actions.php:576

    Just thought this is a priority error from loading the plugins. So i deactivate MLM and the Lifetime Commission Plugin and than reactivate first the LT Commission and second the MLM Plugin.. But the error still occurs. And idea?

    Why is it so exhausting to get the plugin up and running? That’s not fun 🙁

  • Stanlay Forker
    Participant
    @neurosocks
    #10574
    This reply has been marked as private.
  • Christian Freeman
    Participant
    @christianf
    #10577

    Hi Stanlay,

    Sorry for the inconvenience, and thanks for your contribution. I really appreciate your feedback. I was up late last night updating MLM with this new feature. I had the same thought process as you did, but I realized that saving the Direct Affiliate ID on a Per-Integration basis would lead to a lot more code than necessary. Since it will require a custom function for each integration.

    I ended up adding the save_customer_direct_affiliate function to the integrations’ class-base.php file, which applies to all integrations at once. Instead of saving it in the order meta, I’m grabbing the customer data from the (Direct) referral commission itself, and saving it via user meta (As you figured out as well). This way, it stores the referring affiliate right after the core AffiliateWP plugin creates the Direct Referral Commission in the system. So, it won’t wait until the order is marked Complete in WooCommerce, before it executes.

    Regarding the Lifetime Commissions integration, I’ve also updated the call to the Lifetime Commissions Integrations Base Class method, to obtain the referring affiliate via the customer’s email, which should fix the error.

    I’ve sent you the updated version of MLM 1.1.4. It’s an early release, so keep in mind that I may add additional features or make further adjustments to the official release.

    Let me know how the updated version works out for you.

  • Christian Freeman
    Participant
    @christianf
    #10578

    Also, just to give you a heads up, MLM version 1.1.4 adds new email notifications for New Indirect Referrals and New Sub Affiliates. You can enable these from the Emails tab of the AffiliateWP settings, and you can customize the message content there as well.

    This update will be ready for release very soon.

  • Stanlay Forker
    Participant
    @neurosocks
    #10579

    Hi Christian,

    thanks for the Update.. Looks good but one little thing is questionable. You set the user_meta key “direct_affiliate” but get it later with “_affwp_mlm_direct_affiliate_id”.. That won’t work, or am i missing something? Just take a look at the screen attached.. Maybe you can fix that little issue and i will then check if everything works like expected 🙂

    Awesome Support Christian 😉

    Kind regards
    Stanlay

    Attachments:
    You must be logged in to view attached files.
  • Stanlay Forker
    Participant
    @neurosocks
    #10581

    And just one more thing – a question from above. How ca we set a 0$ or in our case 0€ commission for the sign up product? The default is set to 10% but inside the product settings the level commission is set to zero but it always generates a 10% commission.. How can we handle this? Some products should not generate a commission. Any chance to get this done?

    Kind regards
    Stanlay

  • Christian Freeman
    Participant
    @christianf
    #10593

    Hi Stanlay,

    It looks like a type in the usermeta key. Good catch. I sent you the update via message.

    Regarding the Sign Up Product commission, in WooCommerce you can visit the Add/Edit Product screen to disable referral commissions on that product altogether. To do this, check the box to Disable Referrals in the AffiliateWP Tab.

    On the other hand, if you want to set that product at a $0 commission instead, you would have to change the Global commission rate (for Direct Referrals) to 0 in Affiliates > Settings > General. Then, you would have to visit the Add/Edit Product screen and add the commission rate you want to apply for the products that you do want to generate a commission for. This way, all products that you don’t want to award a commission, will automatically have 0 in their Per-Product Rate settings, so they will only create a $0 referral. And the others, will have the correct commission rate you want.

    Just keep in mind that the Global Rate applies to all other integrations as well, so if you plan to use more than one integration, you will need to set Per-Product/Subscription Rates for those products/subscriptions as well.

    Let me know how it works out for you.

You must be logged in to reply to this topic.