Change notification emailaddress and permanent affiliate question.

Posted in

This plugin sure is great. Very easy to setup and use. I have 2 question however:

The notification emails to the affiliates are send from wordpress@mydomain.com where can I change the emailaddress?

I also purchased the permanent affiliate add-on which works great but I wondered if there is a way I can see how many customers are linked to an affiliate. Also wondered if there is a shortcode to display this on the affiliate-area page so the affiliate can see this too.

8 Responses to Change notification emailaddress and permanent affiliate question.

  1. Nasier September 29, 2014 at 10:18 am #

    Hi Antonio. Thanks for the reply. I managed to solve the e-mail problem and the emails are not going to the spam folder anymore but I’m not sure what to do with the code regarding the permanent affiliate count. Do I paste that into functions.php?

    • antonio September 29, 2014 at 2:28 pm #

      Yes, you can add the code in functions.php
      cheers

      • Nasier September 29, 2014 at 3:24 pm #

        Thank you!

      • Nasier September 29, 2014 at 4:01 pm #

        Although it seems to be working I am getting an error when I use the shortcode code.

        Warning: Missing argument 2 for wpdb::prepare(), called in /home/modem/domains/mydomain.nl/public_html/wp-content/themes/bazar/functions.php on line 32 and defined in /home/modem/domains/mydomain.nl/public_html/wp-includes/wp-db.php on line 1154

        It does output the correct them though. Any idea what it can be?

        • antonio September 29, 2014 at 5:38 pm #

          Hi, that looks like an older version of Affiliates Pro is installed, in one of the more recent versions of WordPress, that prepare method changed and the newer versions of the plugin have been taking that into account. In other words, update 🙂

          • Nasier September 29, 2014 at 7:18 pm #

            Im running the latest version of everything.

            Affiliate Pro Version: 2.7.1
            Affiliates Permanent Version: 1.2.0
            Wordpress Version 4.0
            WooCommerce Version: 2.2.4

            • kento September 30, 2014 at 12:21 pm #

              WordPress is complaining about Antonio’s use of $wpdb->prepare(). Change the line that reads:

              $user_meta_query = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->usermeta WHERE meta_key='$meta_key' AND meta_value='$meta_value'" ) );

              to

              $user_meta_query = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->usermeta WHERE meta_key=%s AND meta_value=%s", $meta_key, $meta_value ) );

  2. antonio September 29, 2014 at 9:12 am #

    Hi,
    1.- Affiliates plugin uses the wordpress email settings. This post can help you to change this email data.
    2.- I have create a shortcode with this functionality, I hope you find it useful 🙂
    cheers

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share