Forums / Setting Up Categories, Products, Attributes / Buy product B if product A is bought?

Buy product B if product A is bought?

Locked

Started by brake6 on 18 Feb 2009, 12:30 PM · Views: 760

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Feb 2009, 12:30 PM
#1
brake6 avatar

brake6

New Zenner

Join Date:
Jul 2004
Posts:
16
Plugin Contributions:
0

Buy product B if product A is bought?

Hello

Is it possible to restrict buying product B only if product A is bought?

What my client want is this:

  • She sells a candy box (3 different sizes) which have room for 10 (or 20 or 30) pcs of candy. These candies you can buy only if you first have bought the Candy Box. You can pick and choose freely among 50 different candies (e.g 20 pcs of just one sort or 20 different - one of each).

Is this possible and how to do it?

(I have done a test with a Category "Candy Box" and with the products "Box small", "Box medium" and "Box large". These products have a price and a weight. Then I have products Candy A, Candy B and so on - with a price of 0 (zero) and weight 0 (zero). This is a simple solution which could work - if I could restrict Candy A to be bought only if you first have bought the Candy Box.)

But, maybe I should go another way? Like creating one product for each candy and have prices for 10, 20 and 30 pcs. The customer have to keep track of how many they have put in the shopping basket.

Any ideas how to do this?

Regards, Magnus

18 Feb 2009, 4:37 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Buy product B if product A is bought?

You would need to do some customizing to the code as this is not a built in feature of Zen Cart ... otherwise, you'd need to make Product B an Attribute of Product A ...

1 Product B can only be added to the cart if Product A has already been put in the cart ...

2 Product B must be removed from the cart if Product A is removed from the cart ...

What happens if I buy 1 Product A ... am I limited on how many Product B I can buy?

What happens if I buy Product A today ... and tomorrow I want Product B? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Feb 2009, 10:08 AM
#3
brake6 avatar

brake6

New Zenner

Join Date:
Jul 2004
Posts:
16
Plugin Contributions:
0

Re: Buy product B if product A is bought?

Thanks Ajeh

I will give the client two options: the quick and dirty way (cheap), or the more expensive, and better, way.

Your questions:

  • Yes, you are limited. If buying product A you can buy only 10 of product B.
  • That means trouble :)

Regards, Magnus