• Resolved cpapadop

    (@cpapadop)


    Hello,

    I’m using Checkout Field Editor (Checkout Manager) for WooCommerce and the custom fields I have created do not show in vendor email.

    ThemeHigh told me to use the below function
    $order_meta = get_post_meta( $order_id, $field_name, true );
    to retrieve the custom field from the database.

    I guess I’ve to make some modification in “vendor-notify-order.php” template but I don’t know what exactly to do.

    Could you please help me?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jamie

    (@digitalchild)

    Hello,

    I’m going to preface this with custom code like this isn’t usually supported, but we do what we can to point you in the right direction. You might want to actually hook into the vendor-order-details.php as this provides you the order details table. Which would be a better place to display and to access to the order meta as the $order is passed to this template. From there you could do

    $order_meta = get_post_meta( $order->get_id(), $field_name, true );

    cheers,

    Jamie.

    Thread Starter cpapadop

    (@cpapadop)

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom fields in vendor email’ is closed to new replies.