Call to a member function getStoreLabel() in price.phtml
New Post has been published on http://www.justwebdevelopment.com/blog/call-to-a-member-function-getstorelabel-in-price-phtml/
Call to a member function getStoreLabel() in price.phtml
After upgrade Magento 1.8.0.0 get error on list and view page. Fatal error: Call to a member function getStoreLabel() on a non-object in price.phtml
I got simple fix as below and its working fine for me.
Open this file : app/design/frontend/[your_package]/[your_theme]/template/catalog/product/price.phtml
Find this code:
$_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
And replace it with below:
$_specialPriceStoreLabel = ''; if ($this->getProductAttribute('special_price')) $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel()


















