• Resolved boinich

    (@boinich)


    Hello, friends.
    I have different commercial agents or store clerks with woo.
    My question is how would I know that eerson has gotten a sale to give you a commission?
    I mean, there’s only one store. It’s not a multi-store system.
    Then I have a few salesmen, who give out some XXXX codes to their friends.
    So far, what I’m doing is having those codes used as coupons, so I can see which code was used for the sale.
    But this doesn’t work for me at all, and I’d like to know if there’s another way to do it.
    Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    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!

    Thread Starter boinich

    (@boinich)

    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

    Plugin Support kellymetal a11n

    (@kellymetal)

    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:

    coupons
    Link to image: https://d.pr/i/yMz5GP

    I hope that helps!

    AJ a11n

    (@amandasjackson)

    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.

    Thread Starter boinich

    (@boinich)

    sorry for delay.
    i forgot reply.
    thks so much for suppor Kellymetal

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do you know which salesperson has made a sale?’ is closed to new replies.