0
我是非常新的magento。我正在創建一個運輸模塊。我想知道allowed_methods運輸方式的含義。什麼是運送方法magento中的allowed_methods
我可以在運輸方式中使用自己的allowed_methods嗎?
我是非常新的magento。我正在創建一個運輸模塊。我想知道allowed_methods運輸方式的含義。什麼是運送方法magento中的allowed_methods
我可以在運輸方式中使用自己的allowed_methods嗎?
見this article有關添加自定義的送貨方式來Magento的,如果我correclty明白你的問題 - 你是想詢問getAllowedMethods()方法?:
接下來,我們的接口需要我們實現getAllowedMethods()返回數組所有讓我們這樣做:
public function getAllowedMethods()
{
return array(
'standard' => 'Standard delivery',
'express' => 'Express delivery',
);
}
是的,我的問題是關於getAllowedMethods(),它是什麼。什麼是'標準'和'表達'。它是建立在方法中,還是我可以創建自己的方法。 – gopising 2014-12-04 05:27:24