• i used Woocommerce and Product GTIN (EAN, UPC, ISBN) for WooCommerce plugins.

    I need to show the vendor code at this location in my email as I receive the order.

    https://i.stack.imgur.com/PyZx4.jpg

    Since I am using the Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin, I need to bind its field code.

    https://i.stack.imgur.com/FaZSi.jpg

    How do I make a customer enter a supplier code in the billing box and display it in 1 photo? Thank you.

    Email templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mkud

    (@mkud)

    How should I edit this feature?

    <?php

    add_action( ‘woocommerce_order_item_meta_end’, ‘ts_order_item_meta_end’, 10, 4 );
    function ts_order_item_meta_end( $item_id, $item, $order, $plain_text ){
    echo ‘<p> Website: http://www.tychesoftwares.com </p>’;
    }

    Plugin Author Emanuela Castorina

    (@kreamweb)

    Hi,
    yes you can use the hook woocommerce_order_item_meta_end

    
    add_action('woocommerce_order_item_meta_end', 'ts_order_item_meta_end', 10, 4);
    function ts_order_item_meta_end($item_id, $item, $order, $plain_text)
    {
    	$product = $item->get_product();
    
    	$code = $product->get_meta('_wpm_gtin_code');
    	
    	echo ' - ' .$code;
    }
    Thread Starter mkud

    (@mkud)

    Thanks, good working.

    How can I prevent a customer from seeing this code? We want to see this code and hide it for the customer.
    As we have received the letter that the order has been received, we want it to be there.

    https://ibb.co/5RbmRx0
    https://ibb.co/L516qP7

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce new customer order email, insert supplier code’ is closed to new replies.