Call to a member function getStoreLabel() in price.phtml

Magento
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: [php] $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel(); [/php]   And replace it with below: [php] $specialPriceAttr = $this->getProductAttribute('special_price'); if (!is_null($specialPriceAttr)) { $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel(); } else { $_specialPriceStoreLabel = ''; } [/php]     [JWD-Magento-Development]
Read More