Hi itthinx team!
I’m approaching you with a very specific case that I have. (And I appologise for the long post in advance!)
I’m currently developing a custom solution for my business where I need to allow Affiliate partners to register customers.
To achieve this I developed a form, which will appear in their Affiliate Area. This form will allow them to register new customers and select from a list of products (WooCommerce Subscription products) that the customer would like to purchase.
Upon submitting the form I’m programmatically creating the WordPress user for the new customer and I’m creating an Order and Subscription with the selected products, using the WooCommerce API.
I’m also attaching the newly registered customer to a specific group, using your Groups plugin and I’m adding an Affiliate Permanent equal to the ID of the Affiliate that is currently logged in and it’s registering the customer.
The problem that I have is that a Referral record is not being created for the Affiliate neither when I create the order programmatically or when the subscription renewal is triggered.
I’m using your Affiliates PRO product alongside the Affiliates Permanent, Groups and the WooCommerce Integration (not WooCommerce light).
The key settings that I have are the following:
– Recurring Referrals: Enabled (Limit/Timeout = 0)
– Enable the user registration integration: Enabled
– Enable the WooCommerce customer registration integration: Enabled
– Commision Method: Rates
– Auto-referrals: Enabled
* Affiliates Permanent
– Assign new customers to the referring affiliate. WooCommerce is required for this option: Enabled
– Assign users to the referring affiliate upon first referral. The assignment will be made if no accepted or closed referrals are on record for the user yet : Enabled
I also have Rates set up and assigned the WooCommerce integration there. I also specified that the Rate should apply only to a specific Group (which the Affiliate that registers the Customer belongs to).
I enabled the WP_DEBUG mode to check for any potential errors, but the log doesn’t show anything wrong with the plugin or my implementation.
Can you please advise on what might be the potential problem here, or if the thing I want to achieve is possible at all?
Thanks in advance!