Public Ticket #2843718

Do custom fields appear in the order placed by the Wholesaler?

Closed
Comments
11 Tickets 4
Orlando started the conversation 5 years ago on August 7, 2021 at 1:07am

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,762
KingsPlugins replied 5 years ago on August 7, 2021 at 8:36pm

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

1
11 Tickets 4
Orlando replied 5 years ago on August 8, 2021 at 5:40am

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

1

Sign In