Your cart is currently empty!
Customer Name in Affiliate Notification or Area
—
by
Hi there,
I was wondering if it’s possible to add the customer name into the “Affiliate Notification” email? It’s quite vital for my business that the affiliates know who has purchased through their link.
Alternatively, would it be possible to add a list of the customers in their Affiliate Area?
Thanks,
Richard.
Posted in Affiliates Pro
Comments
3 responses to “Customer Name in Affiliate Notification or Area”
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.
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
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