|
Sure,
File:
app/code/core/Mage/Page/Block/Html/Head.php
Change the function setTitle from this:
public function setTitle($title) { $this->_data['title'] = Mage::getStoreConfig('design/head/title_prefix') . ' ' . $title . ' ' . Mage::getStoreConfig('design/head/title_suffix'); return $this; }
to this:
public function setTitle($title) { $sku = ''; if ($product = Mage::registry('current_product')) { $sku = $product->getSku() . ' - '; } $this->_data['title'] = $sku . Mage::getStoreConfig('design/head/title_prefix') . ' ' . $title . ' ' . Mage::getStoreConfig('design/head/title_suffix'); return $this; }
Of course, it`s better to overwrite this function with an own module instead of hacking the core code!
|