I use this function to modify the price display on homepage. But I don't know how to get the value of attributes. Any ideas on the best way to do this? Thanks so much!
public function collectionFinalPrice($observer) {
$collection = $observer->getEvent()->getCollection();
foreach($collection as $_product){
// $per = ???
// $amount = ???
$finalPrice = (1000+$amount)*$per;
$_product->setMinimalPrice($finalPrice)
->setPrice($finalPrice)
->setFinalPrice($finalPrice);
}
return $this;
}