WooCommerce MetaData - make accessible to Linnworks
G
Gervase Fay
started a topic
over 1 year ago
The data structure of an order after it is retrieved by Linnworks includes metadata from WooCommerce, however the structure of the data means it is inaccessible to Linnworks or Linnworks apps such as XmlExtractor.
Example, existing structure:
· Order
·Id
·OrderNumber
·CreatedAt
·[...]
·CouponLines
·Customer
·MetaData
oelement
oelement
§Id
§Key
§is_gift
§Value
§1
o
oelement
§Id
§Key
§gift_message
§Value
§"This is the gift message text"
oelement
oelement
o[...]
May I suggest that Linnworks implements some additional parsing of data when it is collected from the WooCommerce API? I expect this would be a benefit to many Linnworks users.
If the metadata was processed to simple XML nodes named with the key and containing the value, the data would be accessible and workflows could be built around the data, example:
· Order
·Id
·OrderNumber
·CreatedAt
·[...]
·CouponLines
·Customer
·MetaData
ois_gift
§1
ogift_message
§"This is the gift message text"
o[... other meta data fields]
G
Gervase Fay
said
about 1 year ago
Hello.
We are still not able to access order metadata - any progress on this small change to the XML structure?
Gervase Fay
The data structure of an order after it is retrieved by Linnworks includes metadata from WooCommerce, however the structure of the data means it is inaccessible to Linnworks or Linnworks apps such as XmlExtractor.
Example, existing structure:
· Order
· Id
· OrderNumber
· CreatedAt
· [...]
· CouponLines
· Customer
· MetaData
o element
o element
§ Id
§ Key
§ is_gift
§ Value
§ 1
o
o element
§ Id
§ Key
§ gift_message
§ Value
§ "This is the gift message text"
o element
o element
o [...]
May I suggest that Linnworks implements some additional parsing of data when it is collected from the WooCommerce API? I expect this would be a benefit to many Linnworks users.
If the metadata was processed to simple XML nodes named with the key and containing the value, the data would be accessible and workflows could be built around the data, example:
· Order
· Id
· OrderNumber
· CreatedAt
· [...]
· CouponLines
· Customer
· MetaData
o is_gift
§ 1
o gift_message
§ "This is the gift message text"
o [... other meta data fields]