i am currently developing an extension for woocommerce. I am hooking into the admin variations tab like this:
add_action( 'woocommerce_product_after_variable_attributes' ,'wwp_add_variable_wholesale_price' );
function wwp_add_variable_wholesale_price(){
global $post, $woocommerce;
$post_id = $post->ID;
echo $post_id;
}
Them above is currently displayin the parent product id, and not the variation id. Does anyone know how to get the actual variation id?
Add the action like this: