Mutiple Products with Single Submit

tjayfowlertjayfowler Member
in Help edited October 2008
I have a use case that I am not sure is supported. I currently use vcart (a hosted cart solution) and am thinking of migrating to foxy cart. My use case is that I have products that have multiple sizes and for various reasons don't want to use a drop down (Users often buy multiple sizes of a part, and using a drop down would require back-n-forth). See example here:

with vcart I can use a table layout, users can add multiples of each size and bulk add to cart. I looked through the docs, and I'm not sure this type of use case is supported. I did see this:

<form action=""; class="foxycart" method="post">
<input type="hidden" name="name" value="A Brown Zune" />
<input type="hidden" name="price" value="199.99" />
<input type="hidden" name="2:name" value="A Zune Leather Case" />
<input type="hidden" name="2:price" value="9.99" />
<input type="submit" value="Buy a Zune and a leather case!" />

which looks like it bundles vs. allowing unique quantities of multiple parts of a particular product family.

the way vcart does it is like this:

<form action=""; method="post" name="addtocart">
<input type="hidden" name="item" value="CARTNAME">

<input type="hidden" name="item_QL02" value="CARTNAME^S0160-0003^Quick Link SS 1/8^1.43^op1^^^ea^.02^"><input type="text" size="2" name="op1_QL02" value="0">

<input type="hidden" name="item_QL03" value="CARTNAME^S0160-0004^Quick Link SS 5/32^1.71^op1^^^ea^.03^"><input type="text" size="2" name="op1_QL03" value="0">

<input type="hidden" name="item_QL04" value="CARTNAME^S0160-0005^Quick Link SS 3/16^2.15^op1^^^ea^.05^"><input type="text" size="2" name="op1_QL04" value="0">

<a class="buttonbutton" href="javascript:submitform();"><span>Add to Cart</span></a>

They pass in the quantity for each part (op1_unique_for_each_part) from the text input.

Any approaches that would allow me to continue to use my basic layout but switch to foxy cart?
  • brettbrett FoxyCart Team
    The "basic layout" of your order form could be identical to what you have currently. You'd have to change the HTML around so the options are all grouped together, though.
    which looks like it bundles vs. allowing unique quantities of multiple parts of a particular product family.
    It's actually multiple uniques, no bundling. It just allows you to add multiple distinct, unrelated products to your cart at one time.

    Is that what you mean?
Sign In or Register to comment.