3 Responses to Customer Name in Affiliate Notification or Area

  1. richfitz666 June 27, 2013 at 1:38 pm #

    Hi Kento,

    Thanks for the reply. Luckily, I am using WooCommerce and have already installed the plugin you mention.

    However, I’m really after displaying the customer names. Unfortunately, I’m not much of a coder and wouldn’t know where to start customising anything. Could you point me in the right direction or possibly let me know what code would need adding where?

    Cheers,

    Richard.

    • kento June 30, 2013 at 10:53 am #

      Hi Richard,

      Great, that makes it easy then 🙂 To display the customer’s name you can add the following in the plugin’s main file:

      $output .= '<div class="customer-details">';
      $output .= 'Customer: ' . $order->billing_first_name . ' ' . $order->billing_last_name;
      $output .= '</div>';

      See http://pastebin.com/6CyiYDKC where to place the code, it’s right after line 99 in affiliates-woocommerce-views.php.

      Ideally you would fork the repository on GitHub so you can update your copy with changes later, but if you’re not used to doing that kind of stuff, I think in this case it’s ok if you just modify the copy installed directly. Just remember that you have a hacked version of it installed in case you want to update to a newer version later.

      Cheers

  2. kento June 27, 2013 at 11:22 am #

    Hi Richard,

    It depends on the integration, you can show additional data using integration-specific tokens. There is also the possibility to show order details, for example using Affiliates WooCommerce Views which can be customized to show additional information if needed. That one is for WooCommerce of course, but it can be used to derive something more customized.

    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