One possible way would be, to use $_item->getStoreId()
to differ the stores of each item within your template at template/checkout/cart/render/default.phtml
.
In the standard Magento default.phtml
template, $_item
gets assigned the current item to be rendered (at the very top of the template code).
<?php $_item = $this->getItem() ?>
Thereafter you can easily assign the items proper store name to a variable, like this:
<?php
$aStore = array(
'1' => 'Red Store',
'2' => 'Green Store',
'3' => 'Blue Store',
'4' => 'Yummy Store'
);
$sStore = $aStore[$_item->getStoreId()];
?>
This allows you to output the name wherever you want, using <?php echo $sStore; ?>
.
Another possibility would be to override Mage_Sales_Model_Quote_Item
and create a public getter method, returning the store name of the given item.
But that's another story and maybe like using a sledgehammer to crack a nut^^