3

How would you implement a system that allow people to share a product that's normally one price but because of the referral there is a discount. Oh and the discount is supposed to based which country you live in.

Right now the whole system runs on the honor system and a little front end verification. How do I clean up this mess??

Sure getting the user's location could work until they use a vpn. I don't really know what to do here.

Comments
  • 0
    Do you enter a shipping address with country when checking out?
  • 1
    @ihatecomputers It is a digital product so no. There is a user address field though.
  • 2
    Depends how complicated you wanna be.

    But I would:
    - grab the country from the userstring
    - include a "share" button next to the product that puts a refcode in the url

    If the product is accessed with said refcode, reduce the price. If not, then not.

    If you wanna twirl that concept a little more make the refcode the users id in the db (hashed or smth) so you can do database stuff to see who gets you the refs.

    And in return you could do something nice for said user at x refs.

    Aaand this can go on and on and on however complicated you like it.
Add Comment