Forum Replies Created
-
AuthorPosts
-
cyxouMember
Hi!
[blockquote]One of the main things people forget is to click on an affiliate link properly before making a purchase.[/blockquote]
Why do they have to click on an affiliate link if they are already referrals of their corresponding referrers? My users complain that they don’t get commission awards for subsequent orders of their referrals.
I’m thinking about a tool (a script) that could be run on demand or on schedule that goes through all the latest purchases and awards proper commission to corresponding referrers. I could make an agreement with my users that the affiliate commissions are awarded once in a week or something. But the point is I want my partners to receive their money.
October 17, 2014 at 1:52 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59898cyxouMemberThanks a lot. I’ll give it a try an get back to you with the results ))
October 16, 2014 at 4:36 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59896cyxouMemberGot an idea! What if we uncheck the Automatically Create Affiliate Account checkbox in WP User Settings and create affiliate account manually from the filter after the standard registration is successfully completed? If so, what function do I need for this?
October 16, 2014 at 3:20 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59895cyxouMemberNope, it’s the only registration page I have. I’ve simplified everything as I could. Once registered, the user becomes an affiliate also (Automatically Create Affiliate Account checkbox in WP User Settings).
October 15, 2014 at 6:25 pm in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59893cyxouMemberAs a workaround I think I can use jQuery to prevent the submiting of the form… Something like this:
$("form").submit(function (e) {
e.preventDefault(); // this will prevent from submitting the form.
$.cookie("ap_id", $('referrer selector').value(), { expires : 30, path : '/'});
// and then move forward with submiting the formAnd then goes the “wpmem_pre_validate_form” filter where I’ll check for the validity of the referrer id provided and if there is no such referrer, unset the cookie and return the appropriate message.
But I’d like to avoid dealing with javascript if it can be done with PHP.
October 15, 2014 at 5:40 pm in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59892cyxouMemberSo… if the ap_id cookie is not set and can’t be set prior form submission but the Referrer ID field exists in registration form, can I somehow automatically set a Referrer ID of the newly registered user with the help of the internal WP Affiliate functions like record_click?
October 15, 2014 at 1:55 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59891cyxouMemberHere it is [http://goo.gl/CJrPIV]. Do not be afraid, it’s Russian
For the current time being I’ve removed the Referrer ID field until I find a solution to make it the required field with check for the existence of the username provided.
As for now the only chance for a user to provide a referrer is to use that referrer’s affiliate link which implicitly set the appropriate cookie.
October 14, 2014 at 10:46 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59889cyxouMemberHi,
I use the wpmem_pre_validate_form filter:
/* WP-MEMBERS set ap_id cookie with the referer value */
add_filter( 'wpmem_pre_validate_form', 'wpmem_set_ap_id_cookie' );
function wpmem_set_ap_id_cookie( $fields ){
setcookie('ap_id', $fields['aff_referer'], time() + (86400 * 30)); // 86400 = 1 day
return $fields;
}October 13, 2014 at 1:58 pm in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59887cyxouMemberHi again!
Based on my users’ feedback, I want to make the Affialite ID field on the registration page the required field with checking if the provided username (ap_id) is a valid username, I mean the user who is already registered, the real user.
Need to say that I use WP-members plugin for registering users. I’ve set it’s filters so that when there is no ap_id cookie, the Referrer field is shown in the registration form thus the user is required to provide the referrer’s username. On submitting a form there is a check if the provided referrer is an existing user and if not, it shows the appropriate message. When the user fills in the real valid username in Referrer field, the filter creates a cookie with ap_id equals to referrer field and than it proceeds with the registration. All works perfectly and I like this user experience but the problem is that the registered user does not becomes the referrer’s referral. When I view the created user in WP Affiliate -> Edit Affiliate, the Referrer ID is always empty but when the successful registration message is shown, I can see that the ap_id cookie is set correctly.
Could you please help me to set things so that I could pragmatically set appropriate cookie in appropriate step during registration process or maybe there is a better way to do this?
Now when I’m writing this, an idea pops up in my mind to use internally in my filters your function that sets ap_id cookie in [wp_aff_set_affiliate_id] shortcode. Is it possible?
Thanks in advance.
Kind regards,
Alex
August 21, 2014 at 9:01 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59886cyxouMemberIt would be great if [wp_aff_set_affiliate_id] shortcode shows it’s form only when ap_id is not set. To implement this I had to use custom javascript function on my registration page:
setTimeout(function() {
var ap_id = jQuery.cookie('ap_id');
if (ap_id !== undefined) {
var input = jQuery('input[name="wp_aff_affiliate_id"]').val(ap_id);
input.prop('disabled', true);
jQuery('input[name="wp_aff_affiliate_id_submit"]').hide();
}
}, 500);August 12, 2014 at 6:33 am in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59885cyxouMemberGood point! I’ll try this approach and see how it works.
Thanks again))
August 11, 2014 at 7:58 pm in reply to: Affiliate ID/field included in registration page to manually set the affiliate #59883cyxouMemberHi,
got similar problem here.
For some reason a site that I was hoping my users would post their affiliate links on is trimming the urls after the question mark. It also blocks all the shortened link produced by major url shorteners providers. So the solution in my case is to let users manually enter the affiliate ID into the registration form and make it required.
Is there a way to embed the [wp_aff_set_affiliate_id] shortcode into the registration form for a better user experience?
cyxouMemberLooking forward to get this addon!
Thanks in advance))
-
AuthorPosts