Here’s my code based on your snippet:
foreach(dw_get_table_result($product->get_id()) as $group) {
echo '<h5>' . $group[group_name] . '</h5>';
foreach($group[attributes] as $attr) {
echo '<p><strong>' . $attr[attr_name] . '</strong>';
echo ': ' . $attr[value] . '</p>';
}
}
Here is what it returns:
Group 1
Attribute 1: Value
Attribute 2: Value
Attribute 3: Value
Group 2
Attribute 1: Value
Attribute 2: Value
Attribute 3: Value
Thank you @cziberez for your help on the initial code,
Martin