/** * ugly fix for Magento 1.9 form keys */ public function _afterToHtml($html) { $formkey = Mage::getSingleton('core/session')->getFormKey(); $formkey = "/form_key/" . $formkey . "/"; $html = preg_replace("/\\/form_key\\/[a-zA-Z0-9,.-]+\\//", $formkey, $html); return parent::_afterToHtml($html); }