I have created a custom tab in the product admin.

I have multiple input fields there and I want the values of them to be the price of the product for each store view.

2 Answers 2

$id = Mage::registry('current_product')->getId();
$storeID = Mage::app()->getStore($eachStore)->getId();


This is how to do it:)

Note: I am using a foreach loop to get every store I have, hence the $eachStore


What you can do in a broader scope is to load collections if you dont need the information as a single piece of code.

You can do it like this:

$allStores = Mage::app()->getStores();
foreach($allStores as $store){
    $collection = Mage::getModel('catalog/product')->getCollection()

    foreach($collection as $_product) {
        echo $_product->getPrice();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.