I've researched all over the place, and being new to Magento development, I am having a hard time wrapping my mind around how to accomplish this task.
Our store has a membership that is set as it's own simple product. The membership item is listed at $5. The issue is that this membership can only be added has added another item (a hat) to the cart.
So, in order to purchase the membership, you must have a hat from x, y or z category in your cart.
Any thoughts on the best approach to coding this up? Is is possible via simple settings OR will I need to dig into some of the core code? Any help would be extremely helpful - especially code examples, specific file names/paths that I should be looking at.
If it helps, I'm working with Magento Enterprise V. 1.12.0.2