I have add a configure product in magento store which has associated products( simple and downloaded both) in admin. From frontend I add simple associated product in cart and get cart items information using following code:
$cart_items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
foreach( $cart_items as $items )
{
$items->getProductId();
}
At this time there is only one product in cart ( simple associated product ) but above code return id "95" and "96" where 95 for configurable product and 96 for simple associated product.
How to get only simple associated product id?
Thanks in advance.