【发布时间】:2012-11-13 23:59:36
【问题描述】:
如何在结帐时获取所选的运费和帐单字段? (我想在侧边栏中显示它们)
我在 shipping.phtml 中使用它,但当然这仅适用于当前的“地址”(我想在 methods.phtml 和其他页面中使用它)
$this->getAddress()->getFirstname()
所以我认为这会成功......
Mage::getSingleton('checkout/session')->getShippingAddress()->getFirstname()
但它没有,有人有小费吗?
补充: 这个对我帮助很大,但我被困住了:-S How do I get the shipping method the user has chosen during checkout?
【问题讨论】: