Custom fields meta product hide error
-
hi i need to show the product custom fieldsfrom plugin integration in the metadata product already save , i use a code to hide the woocommerce metadata (sku categries and tags) but it also hide the custom fields from wcfm/integrations : wcfm-view-integrations.php in specific from woocommerce barcode & isbn
https://ibb.co/ys2rGZ1
https://ibb.co/jh27rKq
woocommerce barcode & isbn code// Add to front end function add_barcode_under_sku() { if (get_post_meta( get_the_ID(), 'barcode', true )) { ?> <span class="barcode_wrapper"><?php _e( 'GTIN:', 'woocommerce' ); ?> <span class="barcode" itemprop="barcode"><?php echo get_post_meta( get_the_ID(), 'barcode', true ); ?></span>.</span> <?php if (get_post_meta( get_the_ID(), 'barcode', true ) && get_post_meta( get_the_ID(), 'ISBN', true )) { ?> <?php } else { } ?> <?php } else { } if (get_post_meta( get_the_ID(), 'ISBN', true )) { ?> <span class="isbn_wrapper"><?php _e( 'MPN:', 'woocommerce' ); ?> <span class="ISBN" itemprop="ISBN"><?php echo get_post_meta( get_the_ID(), 'ISBN', true ); ?></span>.</span> <?php } else { } } add_action( 'woocommerce_product_meta_end', 'add_barcode_under_sku', 21 ); // End
The topic ‘Custom fields meta product hide error’ is closed to new replies.