Mailchimp Banner | Q2 2024

added by Latoya

Product Icon

Product Add-Ons

by  Woo
Offer add-ons like gift wrapping, special messages or other special options for your products.

Add option for save data as array

Hi,
It will be nice to add possibility for developer to save order item meta as array in ‘woocommerce_checkout_create_order_line_item’ and ‘add_meta_data’ with key, value, display_key and display_value.
Actually we can’t do that and order item meta key are saved with weird values containing spaces, or other specials chars.

Author

Current Status

Closed

Last updated: November 24, 2017

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:
    Product Developer May 13, 2024 12:35 pm

    Hey there,

    Thank you for getting in touch!

    When using the latest Product Add-Ons version (v6.8.2) and place an order containing products with add-ons, then these add-on data will be saved in the ‘_pao_ids’ order meta in an array format. To modify the individual order item meta data, you may use the ‘woocommerce_product_addons_order_line_item_meta’ filter.

    If you have any more questions about the data structure, feel free to get in touch via: https://woocommerce.com/my-account/contact-support/