Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter makarowich

    (@makarowich)

    Hi.

    I’m passing it like this

    value=”<?php echo WC()->cart->total*100; ?>”

    but form in the iframe comes up blank (free to fill in by user)

    echo WC()->cart->total*100; on its own displays without problem as an integer

    Also

    I found echo $order->get_formatted_order_total

    Is there a value for non-formatted?

    I’d like to do similar thing as above and x100

    thank you.

    Thread Starter makarowich

    (@makarowich)

    here to answer my own question and to document solution.

    I found a plugin called “Insert Php”.

    I created the form on my own website (previously I was only passing values to offsite form)

    now form accepts the value.

    code looks like this now

    value=”[insert_php]echo WC()->cart->total*100;[/insert_php]”

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