• Resolved mysimcha

    (@mysimcha)


    Hi,

    Please explain how to retrieve the custom checkout fields for display in another plugin.

    This is how I am retrieving the default fields:

    $description .= ‘Phone: ‘ . rawurldecode( $order->billing_phone ) . PHP_EOL;

    How would I go about replicatating this for the fields created with your plugin?

    Example: My custom field is named venue_name. I want to retrieve the label and the visitors inputted text. (for example “The Charlton Venue”)

    Thanks,
    Yehuda

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

    (@mysimcha)

    Any comments folks?

    Plugin Author ThemeHigh

    (@themehigh)

    You can retrieve the value of the custom field from the database by using the below function.

    $order_meta = get_post_meta( $order_id, $field_name, true );

    We hope this will help.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrive field inputted info for another plugin’ is closed to new replies.