Magento 1 - Selections for bundled products are displayed multiple times in Checkout

I query the selections for the bundled products like this:

<?php $cart = Mage::getModel('checkout/cart')->getQuote(); foreach ($cart->getAllItems() as $_item) : if($product->getTypeId()==='bundle') : $options = $_item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct()); ?> <dl class="item-options"> <?php foreach ($options['bundle_options'] as $option):?> <dt><?php echo $option['label'] ?></dt> <?php foreach ($option['value'] as $sub) :?> <dd><?php echo $sub['qty'] . " x " . $sub['title'] . " " . Mage::helper('core')->currency($sub['price']) ?></dd> <?php endforeach; endforeach; ?> </dl> <?php endif; endforeach ?>

The problem is, if there are two products in the shopping cart, the selections are displayed twice in both products.

enter image description here

Can someone help? Thanks.

Read Entire Article