Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

关于一个在checkout页面获取shipping method的问题
 
jerry_xiang
Jr. Member
 
Total Posts:  9
Joined:  2012-01-12
 

在checkout页面有5个步骤,其中第3步shipping method根据第二步地址信息得到,我现在想在第四步payment infomation页面得到shipping method ,该怎么做啊?
我在网上也有找一些资料,获取shipping method通过代码:$shipping = Mage::getSingleton(’checkout/type_onepage’)->getQuote()->getShippingAddress()->getShippingMethod();

但是这个方法只能是获取到shopping cart的运输方式,当运输方式有多重的时候,客户是可以在checkout页面选择其他的运输方式的,这才是最终的运输方式,怎么得到checout页面的运输方式?

望各位帮帮忙?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top