Zen Cart Logo
Forums / General Questions / Multiple ADD To CART with same product ID

Multiple ADD To CART with same product ID

Views: 937

Results 1 to 6 of 6
18 May 2011, 12:12 PM
#1
rcm365 avatar

rcm365

New Zenner

Join Date:
May 2011
Posts:
4
Plugin Contributions:
0

Multiple ADD To CART with same product ID

I am using ZenCart v1.3.9d.
I want to have 3 "ADDTOCART" buttons with different hidden quantities for the same product / same page ( main_page=product_info).

A. option1 hidden qty-30 <button1>
B. option2 hidden qty-60 <button2>
C. option3 hidden qty-90 <button3>

When user clicks, button1, shopping cart page should take qty-30 and so on.

How can I do that?

Thanks.

18 May 2011, 2:40 PM
#2
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: Multiple ADD To CART with same product ID

Have you considered using just the one add to cart button with 3 attributes along side of it?

19 May 2011, 11:48 AM
#3
rcm365 avatar

rcm365

New Zenner

Join Date:
May 2011
Posts:
4
Plugin Contributions:
0

Re: Multiple ADD To CART with same product ID

My product configurations/options are such that It is not possible to use attributes ( It does not fulfill my all product variations ). So I have customized tpl_product_info to display all possible options along with buttons on same page (same product id in DB).

option qty price total button

A 30 $1 $30 <Add To Cart>
B 60 $2 $60 <Add To Cart>
C 90 $3 $90 <Add To Cart>

I need to know what part of code I need to change so that qty,total will be passed to shopping_cart page when corresponding <Add to Cart> is clicked.

I tried to display multiple buttons ( in tpl_product_info ) but <Add to Cart> always picks up latest assignment. How does each button click works individually?


For more clarity, here is my product variations. How can I use attributes here?

product : X
options 1 : A1, A2,A3....An
options 2 : B1, B2,B3....Bn

Prices should be as follows:

options 1 : A1

B1 price1
B2 price2
B3 price3

options 1 : A2

B1 price1
B2 price2
B3 price3

options 1 : A3

B1 price1
B2 price2
B3 price3

How can I set price for above combination.

23 May 2011, 4:45 AM
#4
rcm365 avatar

rcm365

New Zenner

Join Date:
May 2011
Posts:
4
Plugin Contributions:
0

Re: Multiple ADD To CART with same product ID

Can anybody help me out ? I really appreciate your time for giving me solution.

21 Jun 2011, 7:34 AM
#5
kenik avatar

kenik

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: Multiple ADD To CART with same product ID

Wold you like this?
Kustovnice Goji Eshop
If yes contact me I will try explane you ho to do this..

21 Jun 2011, 1:43 PM
#6
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Multiple ADD To CART with same product ID

That would be an interesting bit of code...