How to get Addon labels and values meta
-
I’m adding support for this plugin into mine. I need to be able to pull the product addon label and the respective value selected by the customer so that I can display it.
Example:
Topping: Cheese
Extra details: No relish
If I try to pull the item meta data using_ywapo_meta_data
that only gives the values of the created product addons.
Example:
Cheese
No relish
See this screenshot: https://pasteboard.co/vXaayhrjHUzY.png
The product addon labels and their values are actually stored individually in the order item meta but I can’t find a helper option in your code to be able to know what product addons have been created by the admin so that I can get their labels and values for an order item.
The data is stored very unorthodoxly and I can’t find a helper function from your code to pull and format this data. In the following screenshot you can see the addon label and data is stored but to be able to know what meta key to pull, I need to know what product addons were created by the admin and applied to the particular order: https://prnt.sc/6NRecLwEG9uH
- The topic ‘How to get Addon labels and values meta’ is closed to new replies.