2011-04-19 4 views

답변

3

당신은

Mage_Checkout_Block_Success

를 확장하고이 동일한 방법으로 추가해야합니다 : 당신의 success.phtml 템플릿

public function getOrder() 
    { 
     return Mage::getModel('sales/order')->load($this->getLastOrderId()); 
    } 

과의 :

$order = $this->getOrder(); 
foreach($order->getAllItems() as $item){ 
//$item is your product object and you can do what you want with this; 
}