Get Addons labels and price (WooCommerce Producs Add-on)
Question
I’m triying to make a custom view of woocommerce products trough a shortcode.
Does anyone know how can I retrieve and display the name and price of a product addon?
Tried this but with no luck
$metas = get_post_meta($ParentProductID, $id);
foreach ( $metas as $metakey ){
echo $metakey['label'];
}
0
woocommerce
3 years
2020-03-31T04:51:24-05:00
2020-03-31T04:51:24-05:00 0 Answers
78 views
0
Leave an answer