문제는 컨트롤러에있다 :
$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');
바보 같은 질문 : 당신의 모듈이 활성화되어 있습니까? – Kalpesh
정확히 onepagecheckout.xml 레이아웃 파일은 어디에 배치됩니까? 파일 경로를 표시 할 수 있습니까? – ceckoslab
@ceckoslab 코드를 업데이트했습니다. – blakcaps