Hello guyz
I’ve entered an other field in products(at backend), the GTIN number, where i will enter the EAN code. How can i show this in the front end?
So how can i show this http://prntscr.com/uym0zk
Here http://prntscr.com/uym1ls
Thanks
This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago ago by pergolatios
Hello guyz
I’ve entered an other field in products(at backend), the GTIN number, where i will enter the EAN code. How can i show this in the front end?
So how can i show this http://prntscr.com/uym0zk
Here http://prntscr.com/uym1ls
Thanks
Hello,
Do you use an additional plugin?
Provide temporary wp-admin access, so we can take a closer look.
Regards
No, i dont use an additional plugin. I used some php to insert the new GTIN field
Thanks
Provide temporary FTP access, or add the next code in functions.php of your child theme:
add_action('woocommerce_product_meta_end', function() {
global $product;
$gtin = get_post_meta( $product->get_id(), '_gtin', true );
if ( $gtin == '') return;
?>
<span class="gtin_wrapper"><?php esc_html_e( 'GTIN:', 'xstore-child' ); ?> <span><?php echo $gtin; ?></span></span>
<?php
});
Regards
Ok issue solved, thanks
The issue related to '‘Insert ean(GTIN) code to meta in product page’' has been successfully resolved, and the topic is now closed for further responses