Pregunta

(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

¿Fue útil?

Solución

Try it with:

$order_paid = $order->getTotalPaid();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top