問題はコントローラーにあります。
$this->getLayout()->getBlock('content')->unsetChildren('checkout.onepage');
見る:
Mage_Core_Block_Abstract
/**
* Unset all children blocks
*
* @return Mage_Core_Block_Abstract
*/
public function unsetChildren()
{
$this->_children = array();
$this->_sortedChildren = array();
return $this;
}
/**
* Unset child block
*
* @param string $alias
* @return Mage_Core_Block_Abstract
*/
public function unsetChild($alias)
{
if (isset($this->_children[$alias])) {
unset($this->_children[$alias]);
}
if (!empty($this->_sortedChildren)) {
$key = array_search($alias, $this->_sortedChildren);
if ($key !== false) {
unset($this->_sortedChildren[$key]);
}
}
return $this;
}
したがって、コードは次のいずれかになります。
$this->getLayout()->getBlock('checkout.onepage')->unsetChildren();
また
$this->getLayout()->getBlock('content')->unsetChild('checkout.onepage');