Can I set up my affiliates plugin to give a commission to my affiliate members based upon product th

I basically want my affiliates to be "distributors" of my product. They will get a set percentage discount in which a potential customer will come to my site through their link and purchase product. I would like the discounts to already be applied once that customer comes to the site and once they purchase any product, a commission is given to my affiliate. Is this possible?