How to display gravity form data to woocommerce my account orders table?

I created a gravity form and integrated in to woocommerce, I need to display the data I input on gravity form to the order table in woocommerce my-account/orders/ page.

https://preview.redd.it/m21nuvpfoyx91.png?width=881&format=png&auto=webp&s=f21e00a595f17f9e7647bb51923ac3fc2220da6d

You can see in line 14 that i was trying to call it via echo but I cannot find the proper code. I look for get_meta etc. I’m not familiar with this.

Here is the $order array data.

[cache_group:protected] => order-items
[meta_data:protected] => Array
(
[0] => WC_Meta_Data Object
(
[current_data:protected] => Array
(
[id] => 5001
[key] => _gravity_forms_history
[value] => Array
(
[_gravity_form_cart_item_key] => c4e6d20004a3c6cd9602b4caf96ad709
[_gravity_form_linked_entry_id] => 2966
[_gravity_form_lead] => Array
(
[form_id] => 12
[source_url] => https://passportdepot.kubemax.com/product/passport-service/?country_1=United+States&state_1=Alabama&passport_service_1=New+US+Passport&passport-product=7-10++++days
[ip] => 180.190.148.57
[1] => 2022-11-19
[3] =>
[6] => Enzo
[7] => Sales
[8] => [email protected]
[9] => 12321312321
[10] => 1985-11-16
[11] => United States
[155] => 7-10 days|999
[12] => Alabama
[13] => New US Passport
[74.1] =>
[73.1] =>
[73.2] =>
[73.3] =>
[58.1] =>
[156] =>
[170] =>
[171] =>
[48.2] =>
[48.3] =>
[48.4] =>
[48.6] =>
[48.8] =>
[49] =>
[50] =>
[51] =>
[53] =>
[55] =>
[56] =>
[160.1] =>
[162.1] =>
[162.2] =>
[162.3] =>
[59.1] =>
[153] =>
[174] =>
[175] =>
[60.2] =>
[60.3] =>
[60.4] =>
[60.6] =>
[60.8] =>
[61] =>
[62] =>
[63] =>
[64] =>
[65] =>
[66] =>
[165.1] =>
[167.1] =>
[167.2] =>
[167.3] =>
[103] => First Choice
[104] =>
[105] =>
[106] =>
[107] =>
[24] => FedEx Priority Overnight $69|69
[179] => FedEx Priority Overnight $69|69
[31] => 1137
)

Leave a Reply

Your email address will not be published. Required fields are marked *