My Magento installation has the price scope set to website. Therefore I can set different product prices for different websites.
I am trying to load a product model but the price attribute value retrieved is the default value and not the website specific value.
Following is the code I am using.
$oProduct = Mage::getModel("catalog/product")
->getCollection()
->addAttributeToSelect("*")
->addWebsiteFilter($websiteId)
->addFieldToFilter("entity_id", $ruleData["product_id"])
->getFirstItem();
Not sure what I am missing the addWebsiteFilter method doesn’t seem to have the desired effect.
Thanks
I think you need to set the StoreId for the collection. So: