Hi there,
There is no built-in functionality in the core WooCommerce plugin for tracking sales from different sales people. If tracking them via coupon usage doesn’t work for you, then you would most likely need some sort of “affiliate” plugin to add functionality for tracking sales from different referrals/users. Each salesperson could have their own affiliate code that customers would use when making a purchase.
There are many options out there, such as this one from WooCommerce.com:
https://woocommerce.com/products/affiliate-for-woocommerce/
I hope that helps! Have a wonderful day!
hello
Thank you very much. That’s what I’ve been looking for. And taking advantage of your patience and professionalism, if I may, I’ll take this opportunity to ask another question regarding the use of coupons.
When you use a coupon. in the cart appears the used coupon, indicating its name and the discount that it applies, BUT then in the bill and only appears the discount, not the name of the applied coupon. In the admin panel of wordpress, you can see the name of the coupon has used the buyer BUT, is it possible that the invoice or in the mail was seen the name of the coupon?
greetings and again thank you very much for the support to the community.
good day
Hi there,
This would depend a bit on where you want to add the used coupons into the email, however you could use something the following to add it into the Order meta section of the email:
add_action('woocommerce_email_order_meta', 'my_display_coupons_in_order_meta', 10, 4);
function my_display_coupons_in_order_meta($order, $sent_to_admin, $plain_text, $email) {
if( $order->get_used_coupons() && $sent_to_admin ) {
$message = '<h2>Coupons used:</h2> ';
foreach( $order->get_used_coupons() as $coupon) {
$message .= '<p>' . $coupon . '</p';
}
echo $message;
}
}
Which would give something like this:

Link to image: https://d.pr/i/yMz5GP
I hope that helps!
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
sorry for delay.
i forgot reply.
thks so much for suppor Kellymetal