Marketpress and membership integration, need to find an old thread (DavidM)

I remember reading a thread wherein DavidM had posted code to allow for discounts to appear in the shopping cart of marketpress depending on a users membership level.

I really need this functionality but can't seem to find the thread again. Can someone help me?