All Topics
Woocommerce Variation – Column Hook
Hi Team,
i have added the same ACF field in Woocommerce Products Columns and in your extend view of “Woocommerce Variation products”.
After that i am using this hook to display other info in that column:
function add_product_minprice_content( $column, $postid ) {
//this is id of column in woocommerce product
if ( $column == '6166863e0c8b44' ) {
..my code here echo "blah blah"
}
//this is id of colum inside variations
if ( $column == '616685f5bba5e4' ) {
..my code here echo "blah blah"
}
}
add_action( 'manage_product_posts_custom_column', 'add_product_minprice_content', 10, 2 );
and it work normally in woocommerce product column,
intead in your woocommerce variation columns not.
How can i edit to use also your extended view ?
Thanks
You must be logged in to reply to this topic.