I am working on a custom magento theme for a B2B system. We use grouped products so that a retailer can add multiple sizes/colors to their shopping cart all at once.
My question is: Is there a way to keep the products grouped together in the shopping cart, so it will show as a single item with multiple quantity boxes, similar to the product view page?
For example say I have these simple products
T-Shirt Red Small
T-Shirt Blue Small
T-Shirt Blue Medium
Associated to the grouped product
T-Shirt shows up as a single item in search and then has a form on the detail page for adding the simple items to the cart. However when you go to the cart, all the simple items have separated into their own individual rows. How can I make the cart display the grouped product as a single row in the cart with the grouped simpletons underneath it?
I found the code that loops the items in checkout/cart.phtml
<?php foreach($this->getItems() as $_item): ?>
<?php echo $this->getItemHtml($_item) ?>
<?php endforeach ?>
which is pulling the html from checkout/cart/item/default.phtml
I don’t see any code that looks like it would do a group layout.
What do I need to do to get group products to group together on the shopping cart page?