2013-03-04 81 views

回答

2

很簡單。使用下面的代碼:

/*Shipping Rate ID*/ 
    $rate_id = 2163; 

    /*Load the Shipping Rate Model by its ID*/ 
    $salesQuoteRate = Mage::getModel('sales/quote_address_rate')->load($rate_id); 

    if($salesQuoteRate){ 
     echo '<br/>CODE : '.$salesQuoteRate->getCode(); 
     echo '<br/>METHOD : '.$salesQuoteRate->getMethod(); 
    }  
+0

順便說一句,如果這個工程,請接受答案。因此,對於任何稍後進入此線程的人來說都很清楚。 – Haijerome 2013-03-04 09:38:11

+0

輸出如CODE: 方法: – tinkesh 2013-03-04 09:43:25

+0

謝謝你。我從錯誤的數據庫中搜索。感謝它的工作 – tinkesh 2013-03-04 09:51:01