Support » Fixing WordPress » not getting email for custom field woocommerce

  • I am using woocommerce (free plugin).. I am trying to add one custom field to the billing fields..

    here it is:

    // ADDED HOW YOU GOT TO KNOW ABOUT OUR SERVICE FIELD
    add_filter( ‘woocommerce_checkout_fields’ , ‘About_Our_Service’ );

    // Our hooked in function – $fields is passed via the filter!
    function About_Our_Service( $fields ) {
    $fields[‘billing’][‘billing_meat’] = array(
    ‘label’ => __(‘How you Got to Know About Our Service?’, ‘woocommerce’),
    ‘placeholder’ => _x(”, ‘placeholder’, ‘woocommerce’),
    ‘required’ => false,
    ‘clear’ => false,
    ‘type’ => ‘select’,
    ‘options’ => array(
    ‘google-ads’ => __(‘Google’, ‘woocommerce’ ),
    ‘google-search’ => __(‘Yahoo’, ‘woocommerce’ ),
    ‘warrior-forum’ => __(‘Bing’, ‘woocommerce’ ),
    ‘facebook’ => __(‘Facebook’, ‘woocommerce’ ),
    ‘other’ => __(‘Other’, ‘woocommerce’ ),
    )
    );

    return $fields;
    }

    The problem is: I am not getting the value in my mail for the custom field which was added to the billing fields.. Anyone who already used woocommerce can help me on this… ?

    I already created some more custom fields which was added to the checkout (BUT these’re not added along with the core fields), for these fields i’m able to get values in my mail..

    between, i checked this [thread][1]: but didn’t much info related to mail..

    please kindly someone look into this..

    [1]: http://wcdocs.woothemes.com/snippets/tutorial-customising-checkout-fields-using-hooks-and-filters/

    [No bumping. If it’s that urgent, consider hiring someone.]

  • The topic ‘not getting email for custom field woocommerce’ is closed to new replies.