Just wondering if anybody can help me, we are developing a website which has a few grouped items.

I can get the group product total by using the following.

PHP Code:
<?php
                $sum 
0;
                
                
$products $_product->getTypeInstance()->getAssociatedProducts();
                foreach (
$products as $product){
                    
$sum += $product->getPrice();
                }
                
               
?>
             <span class="price"><?php echo $this->__('') . $_coreHelper->currency($sumtruefalse); ?></span>
The issue is that it doesn't pull the QTY to if the group has a simple product set to 2 it still return the total as being 1.