×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Roman Ignatov
Added: Nov 24, 2016 4:24 PM
Views: 2170
Tags: magento
  1. <?php
  2.  
  3. class Mymodule_Customer_Block_Form_Login extends Mage_Customer_Block_Form_Login
  4. {
  5.    
  6. protected function _prepareLayout()
  7.     {
  8.         parent::_prepareLayout();
  9.         if ($this->useSimpleVersion()) {
  10.            
  11.             $root = $this->getLayout()->getBlock('root');
  12.             if ($root) {
  13.                 $root->setTemplate('page/empty.phtml');
  14.             }
  15.         }
  16. }