• Resolved Anonymous User 16110023

    (@anonymized-16110023)


    I have a tracking code plugin, that adds tracking codes to orders, I need to display it in the email, I’ve tried using {meta_key_name} and [wec_order_meta key=’meta_key_name’] but it won’t display the meta value.

    How can I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Anonymous User 16110023

    (@anonymized-16110023)

    add_action( “woocommerce_email_after_order_table”, “custom_woocommerce_email_after_order_table”, 10, 1);
    function custom_woocommerce_email_after_order_table( $order ) {
    $rastreio = get_post_meta( $order->id, “_correios_tracking_code”, true );
    echo $rastreio;
    }

    Plugin Support angelagrey

    (@angelagrey)

    Hello,

    Thank you for contacting us. We apologize for this late reply.
    This shortcode is not available in the free version yet, unfortunately.

    Regarding your code in the second comment, it seems correct. However, you need to drag the WC Hook element to show this code. Please use the WC hook and try all positions.
    You can read our documentation for WC Hook for more information.

    Best regards

    brijeshhe

    (@brijeshhe)

    I have a lumise custom design plugin, that adds custom design to orders, I need to display it in the email,

    How can I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use custom meta values?’ is closed to new replies.