Mobile App Refresh Campaign [Banner] 2024

Product Icon

Product Add-Ons

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

For Dev – function for retrive the addon (the value and price) associated to the item in the order.

It might be useful to have a function that returns the addon ( its price and value set by the user) by iterating the line item in an order.

Author

Current Status

Closed

Last updated: April 20, 2021

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:
    Product Developer May 31, 2024 7:26 am

    Hey there,

    Thank you for getting in touch!

    Product Add-Ons are stored as meta data on each order item. Therefore, you may retrieve the add-on’s name and value by calling get_meta() on the order item object directly. If you have any more questions about this, don’t hesitate to reach out via: https://woocommerce.com/my-account/contact-support/.