Zen Cart Logo
Forums / General Questions / Automatically Add Products to cart

Automatically Add Products to cart

Locked

Views: 1,710

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Apr 2008, 5:38 PM
#1
blackc2004 avatar

blackc2004

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Automatically Add Products to cart

Hi. I've tried searching the forums but cannot find a way to do this.

If someone buys product X from our store, I want the cart to automatically add product Y with a price of $0.00 to the cart.

Is there a way to do this?

Thanks!

14 Apr 2008, 5:52 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Automatically Add Products to cart

What if a customer does not want "product Y" ?

14 Apr 2008, 5:55 PM
#3
blackc2004 avatar

blackc2004

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: Automatically Add Products to cart

It doesn't matter. For our purposes a customer will always want Product Y.

23 Apr 2008, 8:27 PM
#4
blackc2004 avatar

blackc2004

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: Automatically Add Products to cart

Any suggestions on how to do this? I've found a way to add products to the cart and modify the subtotal, but this subtotal does not carry through the whole checkout process.

It'd be better if I could actually modify the product price that's in the cart. Any suggestions?

Thanks!

23 Apr 2008, 8:57 PM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Automatically Add Products to cart

Well, the easiest way would be: right at the checkout page, you scan if the customer has product x in the basket, if yes you add y in.

23 Apr 2008, 11:25 PM
#7
blackc2004 avatar

blackc2004

New Zenner

Join Date:
Apr 2008
Posts:
21
Plugin Contributions:
0

Re: Automatically Add Products to cart

Yes, that's what I'm doing. But the example's sub-total does not carry through to the check out. As soon as you get to the checkout page the total goes back to the orig price of all the products.

Thanks.