Okay
  Public Ticket #2843718
Do custom fields appear in the order placed by the Wholesaler?
Closed

Comments

  •  4
    Orlando started the conversation

    Does this User's custom data appear in the order for the Store Administrator?

    This information is important for preparing the order, is there a way to make it appear along with the order to the administrator and also reach him by email?


    4460316861.png

    THX!

  •  2,216
    WebWizards replied

    Hi,

    I'm afraid this is not possible with the plugin directly. It would only be possible by modifying the New Order email template (as discussed in other tickets).

    Within the .php email template, you would have to pick up the data by writing code such as:

    $about = get_user_meta($user_id, 'b2bking_custom_field_1234', true);
    echo $about;

    In the above, 1234 would have to be replaced with the ID of the custom registration field (which can be obtained by going to the field in the backend - the number in the URL is the field ID).


    Kind regards,

    Stefan

  •  4
    Orlando replied

    Thank you so much!

    I'll try to do this just if you really need it, because I do not handle both PHP to edit these files

    : D

    Thank you very much