I want to show attachment link with every product which is in cart. I only need product id on cart.phtml, but product are rendering with this code
<?php foreach($this->getItems() as $_item): ?>
<?php echo $this->getItemHtml($_item) ?>
<?php endforeach ?>`
and I am unable to fetch product Id, how can I get product Id so that I can show link with every product in cart.
I am working with configurable product and $productID = $_item->getProductId();
returns always parent id. Is any way to get child product id in cart ?