Order participants info getting in API
-
Our website is a developed using WooCommerce for students register for the course. The course having 3 parameters, “location”, “duration” and “date range”. We found that the HasteDesign plugin “registration” would be right fit for us.
Course participants name, surname & email are captured during the checkout along with other billing information.
When I view the order thru API the participants information comes like this in JSON object
“meta_data”: [
{ “id”: 31259, “key”: “_registrations_order_meta”,
“value”: “a:1:{i:0;a:2:{s:4:\”date\”;s:88:\”Master Bartending Course: 1-Week – {\”type\”:\”range\”,\”dates\”:[\”2018-01-29\”,\”2018-02-02\”]}\”;s:12:\”participants\”;a:2:{i:0;a:3:{s:4:\”name\”;s:6:\”Student Name1\”;s:7:\”surname\”;s:8:\”Student Surname1\”;s:5:\”email\”;s:26:\”[email protected]\”;}i:1;a:3:{s:4:\”name\”;s:7:\” Student Name 2\”;s:7:\”surname\”;s:8:\” Student SurName2\”;s:5:\”email\”;s:26:\”[email protected]\”;}}}}”Is there any better way to read the participants names? Something like this
{
“id”: 31259,
“key”: “_registrations_order_meta”,
“course”: “Master Bartending Course: 1-Week –“,
“varationid:” “12345”,
“firstname:”: “Student Name1”,
“surname” : “Student Surname1”,
“email:” : “[email protected]”
},Is there anyway I can extract in API beautify/readable format?
Thanks
- The topic ‘Order participants info getting in API’ is closed to new replies.