I want to split the quantity text box into three text boxes,i.e., for child, adult and others separatly before add to cart for only bundled products. I did by adding the following code in the addtocart.phtml
<?php if ($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE): ?>
<label for="qty"><?php echo $this->__('Adult Qty:') ?></label>
<input type="text" name="qty" id="adult-qty" maxlength="12" value="1" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
<label for="qty"><?php echo $this->__('Child Qty:') ?></label>
<input type="text" name="qty" id="child-qty" maxlength="12" value="1" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
<label for="qty"><?php echo $this->__('Infant Qty:') ?></label>
<input type="text" name="qty" id="infant-qty" maxlength="12" value="1" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
<?php endif; ?>
Now what i need is have to add these three quantities and save as a total quantity. Also have to view child,adult and others quantities separately in teh shopping cart page. Can anyone have idea on this?