Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1088615

    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;
    }
    #1089664

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.