Magento: Get product price from another store?

Magento: Get product price from another store?

July 3, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Get product price from another store?

Accessing Product Prices from Different Stores in Magento

In a multi-store Magento setup, each product can have different prices assigned for each store view. If you’re looking to retrieve the price of a specific product from a different store than the current one being viewed, you’ll need to follow these steps:

Understanding Magento’s Store View Concept

Magento allows you to manage multiple stores and assign products to them individually. Each store can have its own URL, layout, theme, and pricing structure. The key lies in identifying the correct store ID for your target price.

Getting the Target Product Price

Let’s say you want to get the price of a product with an ID of 123 from a store with an ID of 456. You can use Magento’s core API for this purpose:

$product = Mage::getModel('catalog/product')->load(123);
$targetStorePrice = $product->getPrice();

However, this code snippet will only return the price from the current store view. To target a specific store, you need to override the product model and add the desired store ID:

class Mage_Catalog_Model_Product extends Mage_Core_Model_Abstract {
    public function getPrice() {
        $storeId = 456; // Replace with your target store ID
        return parent::getPrice($storeId);
    }
}

Remember to place this override in the app/code/local directory of your Magento installation. You can also use a plugin or event observer for more complex logic.

Displaying the Price on Your Page

To display both the current store’s price and the target store’s price side-by-side, you would typically do something like this:

<?php $product = Mage::getModel('catalog/product')->load(123); ?>
<p>Current Store Price: <?php echo $product->getPrice(); ?></p>
<p>Target Store Price (ID 456): <?php echo $product->getPrice(456); ?></p>

Note that <?php echo $product->getPrice(); ?> will display the price from the currently active store view, while <?php echo $product->getPrice(456); ?> will display the price from the store with ID 456.

Conclusion

Working with multi-store setups in Magento requires a clear understanding of how prices are managed across different views. By leveraging Magento’s core API and some basic PHP, you can easily retrieve product prices from any specific store view.

Remember that this is a very simplified example; real-world scenarios may require more complex logic or additional fields like special pricing rules. Always refer to the official Magento documentation for comprehensive guides and support on managing multi-store configurations.

In the next post, we’ll explore how you can display inventory levels from one store within another using similar techniques. Until then, keep your stores well-organized and your prices up-to-date!

Catalog API Extensions Themes

Our network