Rename field in generated JSON
-
Guys,
googling for 3 days already…please help..:)
How can I rename fields in JSON, generated by X-Wc-Webhook-Topic:order.created webhook?
For example:
“shipping”: {
“first_name”: “Nikita”,
“last_name”: “P”,
“company”: “”,
“address_1”: “”,
“address_2”: “”,
“city”: “”,
“state”: “”,
“postcode”: “”,
“country”: “NL”“first_name” should become “Naam”
And
“line_items”: [{
“id”: 2233,
“name”: “Honingkracht”,
“product_id”: 1290,
“variation_id”: 0,
“quantity”: 1,
“tax_class”: “gereduceerd-tarief”,
“subtotal”: “6.13”,
“subtotal_tax”: “0.37”,
“total”: “6.13”,
“total_tax”: “0.37”,
“taxes”: [{
“id”: 52,
“total”: “0.367925”,
“subtotal”: “0.367925”
}],
“meta_data”: [],
“sku”: “22204”,
“price”: 6.132075sku should become artikel
Please, help will be much appreciated..
The page I need help with: [log in to see the link]
- The topic ‘Rename field in generated JSON’ is closed to new replies.