Zen Cart Logo
Forums / General Questions / Mutually Exclusive Products?

Mutually Exclusive Products?

Locked

Views: 910

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Jun 2008, 6:36 PM
#1
quangdog avatar

quangdog

New Zenner

Join Date:
May 2007
Posts:
13
Plugin Contributions:
0

Mutually Exclusive Products?

I want to be able to sell products that cannot be combined - if they add item A to their cart, then try to add item B, it should remove item A and then add item B. If then then add item A again, it should remove item B and add item A.

I'm happy to write the code to do the add/remove, but I'm unsure where in the architecture of zc this best belongs.

Can anyone offer a tip?

Thanks!

--Kimball

12 Jun 2008, 8:00 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Mutually Exclusive Products?

Check the wiki. Wilt has a tutorial in the Developer's API section that describes setting up a buy-$x-get-free-gift, and part of the code for that would be similar to what you want to do.