I believe that what you mean is, for an exaple:
Buying Claws of Attack +3 requires, let's say, Claws of Attack +2 and some gold, correct?
If so, the trigger is quite simple, but kinda long to write. I myself would do it with hashtables, saving Tier 1 item at index 1, then Tier 2 item at index 2 and so on. Then, when an unit wants to buy an item, the trigger checks whether it has the lower tier item in it's EQ and either removes the lower tier item or shows an error message and doesn't allow to buy the item.
It's 2:25 AM in my country, sorry for not-too-understandable way of putting things