在Magento的一页结帐的“订单审查"部分中获取帐单信息 [英] Get billing information in order review section of one page checkout in Magento

查看:36
本文介绍了在Magento的一页结帐的“订单审查"部分中获取帐单信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Magento 1.7.0的一页结帐"的订单查看"部分中显示帐单和运输信息.

I am trying to display the billing and shipping information in the "Order Review" section of One Page Checkout in Magento 1.7.0.

但是,它根本不想合作.我尝试了各种论坛和SO中提到的几种方法.但是这些方法似乎都不起作用.

However, it just doesn't want to co-operate at all. I tried several methods mentioned in various forums and in SO as well. But none of these methods seem to work.

这是我已经尝试过的.

http://www.magentocommerce.com/boards/viewthread/55281/

http://www.magentocommerce.com/boards/viewthread/55281/

任何帮助将不胜感激! 预先感谢.

Any help would be greatly appreciated! Thanks in advance.

推荐答案

Mage::getSingleton('checkout/session')->getQuote()
                                      ->getShippingAddress()
                                      ->getData();


Mage::getSingleton('checkout/session')->getQuote()
                                      ->getBillingAddress()
                                      ->getData();

将为您提供当前订单的账单和运输信息的数组.根据具体情况,您可能还需要致电

Will give you arrays with the billing and shipping information for the current order. Depending on context, you may also have to call

Mage::getSingleton('checkout/session')->getQuote()
                                      ->collectTotals();

为了使订单税金,小计等正确无误.

For the order taxes, subtotals, etc to be correct.

这篇关于在Magento的一页结帐的“订单审查"部分中获取帐单信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆