$product = Mage::getModel('catalog/product')->load(123); $product->setStoreId(1); echo $product->getName();
$category = Mage::getModel('catalog/category')->load(4); $category->setStoreId(2); echo $category->getName();In this example, we load a category with ID 4 and set the store ID to 2. We then get the name of the category and echo it out. This will output the name of the category for store ID 2. These examples are part of the Magento core library, which is distributed as part of the Magento package.