【问题标题】:magento: how much is paid & Shipping methodmagento:支付多少和运输方式
【发布时间】:2013-12-20 10:54:20
【问题描述】:

(关于stackoverflow的第一篇文章!)

我正试图弄清楚如何才能看到已经支付了多少。

    $order_paid = $order->getGrandTotal(); <- i know that this is wrong
    $order_total = $order->getGrandTotal();

这是用于(后付款)功能,其中订单具有“order_total”价格但“order_paid”字段为0.00,

我知道我可以在我的模块中通过询问设置订单的付款方式来做到这一点。 为了简单起见,我希望 Magento 给我“order_paid”值

【问题讨论】:

    标签: php magento orders


    【解决方案1】:

    试试看:

    $order_paid = $order->getTotalPaid();
    

    【讨论】:

    • 我是如何错过我不知道的。成功了,谢谢我的朋友!
    猜你喜欢
    • 1970-01-01
    • 2013-10-11
    • 2015-07-22
    • 2012-05-11
    • 1970-01-01
    • 2013-10-24
    • 2012-03-01
    • 2023-04-08
    • 1970-01-01
    相关资源
    最近更新 更多