I need to define a custom field in woocommerce produts (integer value) and need to access it in another plugin.
In that plugin I can already access woocommerce data via
$order_total = get_post_meta( $order_id, '_order_total', true );
If I define a custom field named "xpto", how can I get its data to a variable?
hope someone can help