Hy,
This is the moment I don’t like often updates. You had to check every page every time completely.
I had the same effect. The WooCommerce Developer had change the behavior in this version. (I’m not sure if this is a mistake)
You couldn’t enter directly a full Name for a custom attribute. You had to write the slug of a global or product defined attribute, which will be replaced by the attribute name.
But to fix this problem probably until the next update you could modify a file: (Firstly only on the Order Summary Page, I have to search the eMail generation place)
wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php
Line:
$meta_key = wc_attribute_label( $product_attributes[ str_replace( 'attribute_', '', urldecode( $meta_key ) ) ]['name'] );
Surround with an if, which checks if the new meta_key is empty.
Result:
if('' != wc_attribute_label( $product_attributes[ str_replace( 'attribute_', '', urldecode( $meta_key ) ) ]['name'] )) {
$meta_key = wc_attribute_label( $product_attributes[ str_replace( 'attribute_', '', urldecode( $meta_key ) ) ]['name'] );
}
Probably not the best solution, but I have to test all of my woocommerce systems at the moment. 😉
Stefan