获取并向meta.php添加变体属性

I would like to display an attribute_value on the single product page after they selected the product options, just like the SKU is showing up after the product options are selected.

I need to add in the meta.php file of woocommerce.

This is the SKU wrapper from Woocommerce:

<span class="sku_wrapper"><?php esc_html_e( 'SKU:', 'woocommerce' ); ?> <span class="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku : esc_html__( 'N/A', 'woocommerce' ); ?></span></span>

How can i display my pa_ attribute?

Thanks a lot..

Erik

Picture 1: The attributes Picture 2: Just like the sku i would like to show the attribute

This code is showing me standard the 1e attribute, but that is not what i want. I would like to show the right attribute after they selected the product option.

<?php echo $appleid = array_shift( wc_get_product_terms( $product->get_variation_attributes, 'pa_apple-id', array( 'test' => 'names' ) ) ); ?>