Forums / Templates, Stylesheets, Page Layout / add multiple items in one form... one click

add multiple items in one form... one click

Locked

Views: 1,777

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Dec 2009, 10:30 PM
#1
mac007 avatar

mac007

New Zenner

Join Date:
Dec 2009
Posts:
2
Plugin Contributions:
0

add multiple items in one form... one click

Hi, all:

I need to add several unique items at one time and with different quantities as needed like this per example...

2 - excedrin
4 - tylenol
2 - bayer
3 - nyquil

I was reading that one can use the "multiple_products_cart_quantity" form structure, so I set this code up, that has 2 product id's, but it's not working right, only added the last item. What am I doing wrong?? appreciate the help!

Thanks!

<form name="multiple_products_cart_quantity" action='http://www.mysite.com/shopping-carts/zen-cart/index.php?main_page=product_info&action=add_product' method='post' enctype='multipart/form-data'>

<input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="1" />
<input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="2" />
<input type="image" src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " />

</form>
2 Dec 2009, 11:39 PM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: add multiple items in one form... one click

Are you sure that is understandable for customers? When you have to add all those ingredients, it looks like one product for me. When you sell soft drinks, you wouldnt want to order all the ingredients at the right quantity seperate isnt it?

3 Dec 2009, 6:08 PM
#3
mac007 avatar

mac007

New Zenner

Join Date:
Dec 2009
Posts:
2
Plugin Contributions:
0

Re: add multiple items in one form... one click

No, it's all different, unrelated products... I wand people to be able to choose different quantities of different products at once, and then submit the form, in one click...

I read that it could be done by using the "multiple_products_cart_quantity" form type, but havent been able to do it...