We use an email address as a reference code. Once new customer make a valid reference after registration, they will get a discount for 2% of total price. And after a valid order to prescriptionpharmacy4u (not cancel, charge back, return items, etc.), the one who got reference will get 3% discount.
Once the discount rate has been set, it valid through all next orders belong to that account.