Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

Nudeweb

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 20, 2013 at 3:58 pm in reply to: Track new user account creation via paid membership pro #59571
    Nudeweb
    Member

    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 #59570
    Nudeweb
    Member

    OK 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 #59569
    Nudeweb
    Member

    I 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 #59567
    Nudeweb
    Member

    Hi, 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.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ