Tagged: field, grid, Product, products, woocommerce
Hi,
I want to add a custom field of products in the WooCommerce product grid.
Now I have this code but this adds it on the product page while I want to show it in the grid;
add_action( 'woocommerce_after_single_product_summary', 'add_custom_field', 0 );
function add_custom_field() {
global $post;
echo "<div class='prod-code'>Product Code: ";
echo get_post_meta( $post->ID, '_yith_booking_block_cost', true );
echo "</div>";
return true;
}
Hey (Email address hidden if logged out) ,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis