If I copy a core file to fix a bug, do I need to copy the whole file or is enough to copy only the function?
Like I copy /app/code/core/Mage/Core/Model/Store.php
to /app/code/local/Mage/Core/Model/Store.php
to fix a bug in public function roundPrice($price)
:
class Mage_Core_Model_Store extends Mage_Core_Model_Abstract
{
public function roundPrice($price)
{
// fix
}
}