Hi i'm newbie to magento, trying to override catalog price block to use my custom price.phtml (Coz it's conflicting if i do any css updates). To do this I have done below steps,
Copied app/code/core/Mage/Catalog/Block/Product.php
to app/code/local/Mage/Catalog/Block/Product.php
In the copied file, about Line 61, changed
public function getPriceHtml($product)
{
$this->setTemplate('catalog/product/price.phtml');
$this->setProduct($product);
return $this->toHtml();
}
to
public function getPriceHtml($product)
{
$this->setTemplate('catalog/product/customprice.phtml');
$this->setProduct($product);
return $this->toHtml();
}
Is there any further config required to achieve this ?