문제

(first post on stackoverflow!)

I'm trying to figure out how I can see how much is already paid.

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

This is for (afterpay) function where the order has a "order_total" price but the "order_paid" field is 0.00,

I know I can do this in my module by asking which payment method an order is set. To do this simple, I want Magento to give me the "order_paid" value

도움이 되었습니까?

해결책

Try it with:

$order_paid = $order->getTotalPaid();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top