• Resolved newshop

    (@newshop)


    Hello,
    I created a custom template with payment instruction. I would like to repeat the order total price in the payment instructions but I dont know how to do this. I tried <?php echo $item['order_price']; ?> but that showed only the product price without shipping. Then I tried <?php echo $total['value']; ?> but that outputs just the tax value, not the order total.
    Any help would be really appreciated.

    • This topic was modified 5 years, 10 months ago by newshop.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! You can get the order total with <?php echo wc_price( $this->order->get_total() ); ?>. Hope that helps!

    • This reply was modified 5 years, 10 months ago by Ewout. Reason: typo
    Thread Starter newshop

    (@newshop)

    Perfect, that works! Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get order total’ is closed to new replies.