2014-12-03 123 views

回答

0

this article有關添加自定義的送貨方式來Magento的,如果我correclty明白你的問題 - 你是想詢問getAllowedMethods()方法?:

接下來,我們的接口需要我們實現getAllowedMethods()返回數組所有讓我們這樣做:

public function getAllowedMethods() 
{ 
    return array(
     'standard' => 'Standard delivery', 
     'express'  => 'Express delivery', 
    ); 
} 
+0

是的,我的問題是關於getAllowedMethods(),它是什麼。什麼是'標準'和'表達'。它是建立在方法中,還是我可以創建自己的方法。 – gopising 2014-12-04 05:27:24

相關問題