I added this code directly after the line “$linea = $linea.$quantity…….. etc.”
This works for now, but will offcourse be overwritten with an update.
I commented out the slug, becuase i don’t need the name of the attribute, i just want the attribute.
foreach ($item->get_meta_data() as $metaData) {
$attribute = $metaData->get_data();
// attribute slug
//$slug = $attribute['key'];
//$linea = $linea .$slug.": ";
// attribute value
$value = $attribute['value'];
$linea = $linea .$value." - ";
}