WooCommerce - excelling eCommerce
Including Custom Fields in order email (1 post)

  1. mclenhard
    Posted 1 year ago #

    I'm trying to include a custom field in the email that is sent to customers upon purchase. I added a custom field "Phone_number" into the all of the product pages.

    I've tried including
    $orderidno = $order->id;
    $prodmetaa = get_post_meta($orderidno, "Phone_number" , True);
    echo $prodmetaa;

    In the order email template, but haven't had any success. Has anyone done anything like this before or have any Idea how I could accomplish this .


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic