Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Only the order total?

    You can use the following PHP snippet in a custom template:

    <?php echo wc_price( $this->order->get_total(), array( 'currency' => 'NOCURRENCY' ) ); ?>

    Removing the currency from the amounts already in the invoice is a lot more difficult…
    Let me know if that helps!

    Ewout

    Thread Starter Siamwp

    (@programmerloso)

    Thank you very much, but I’m sorry for late reply. I haven’t tried. But I think it should not be a problem. If I used and it can work well, I’ll tell you.

    Thread Starter Siamwp

    (@programmerloso)

    Thank you for help. I try to do as you suggest, it appears that it Non – breaking space (nbsp;) show up before the price numbers. I don’t want it, I want to just the numbers. I can fix this problem by using <?php $this->order->get_total() ?>. It works with my needs.

    Thank you very much.

    Plugin Contributor Ewout

    (@pomegranate)

    Great, glad to hear that ??

    Have a great day!
    Ewout

    global $woocommerce;
    $woocommerce->cart->total;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get order total price without currency symbol’ is closed to new replies.