currently, order line items metadata gets saved very inconsistently:
// product variation
“key”: “1-kies-je-kip”,
// product addons
“key”: “2. Kies je mix”, <---- here addon price is 0
"key": "3. Kies je extra's (€ 4,00)", <---- price is 4
now, problem with that is whenever addon price/title changes, code that looks for that meta key, needs to be updated.
Proposition: add a slug/id field for addons (either user defineable or autogenerated) that will always stay the same (unless addon is removed)
Closed
Last updated: February 28, 2019
Log in to comment on this feature request.
Hey there,
Thank you for getting in touch!
In the recent Product Add-Ons versions, we have introduced a unique add-on ID in the meta data. Therefore, I recommend updating to the latest version and if you have any additional questions, get in touch via: https://woocommerce.com/my-account/contact-support/.