Forum Replies Created
-
AuthorPosts
-
December 20, 2013 at 3:58 pm in reply to: Track new user account creation via paid membership pro #59571NudewebMember
Seems to be working!, Sorry for the convoluted thread.
December 20, 2013 at 3:55 pm in reply to: Track new user account creation via paid membership pro #59570NudewebMemberOK found why the site was breaking I had the function in twice in functions.php
But could you tell me how to check to see if the function is being executed?
December 20, 2013 at 3:47 pm in reply to: Track new user account creation via paid membership pro #59569NudewebMemberI have amended the function as follows but it breaks the site
add_action(‘user_register’, ‘mo_affilliate_signup’);
function mo_affilliate_signup() {
global $members_template;
$sale_amt = “19.95”; //TODO – The commission will be calculated based on this amount
$unique_transaction_id = uniqid(); //TODO – The unique transaction ID for reference
$email = $members_template->member->user_email; //TODO – Customer email for record
$referrer = $_COOKIE;
do_action(‘wp_affiliate_process_cart_commission’, array(“referrer” => $referrer, “sale_amt” =>$sale_amt, “txn_id”=>$unique_transaction_id, “buyer_email”=>$email));
}
Could you tell me what I’m doing wrong please?
December 12, 2013 at 9:37 pm in reply to: Track new user account creation via paid membership pro #59567NudewebMemberHi, Thanks for the reply. I have tried the following in functions.php but it still does not register the signup.
add_action(‘user_register’, ‘mo_affilliate_signup’);
function mo_affilliate_signup() {
global $members_template;
$sale_amt = “19.95”; //TODO – The commission will be calculated based on this amount
$unique_transaction_id = “FREE-Signup”; //TODO – The unique transaction ID for reference
$email = $members_template->member->user_email; //TODO – Customer email for record
$referrer = $_COOKIE;
do_action(‘wp_affiliate_process_cart_commission’, array(“referrer” => $referrer, “sale_amt” =>$sale_amt, “txn_id”=>$unique_transaction_id, “buyer_email”=>$email));
}
The sale amount is irrelevant for me as it’s a fixed sign up commission of $1, unless if necessary I’m not bothered about a unique transaction_id as there is no real transaction.
Could you tell me what I’m doing wrong please.
-
AuthorPosts