Magento – Display attribute set groups with product

attributesmagento-1.7

I need to display groups with attributes when I display product informations.

For example, I have an attribute set with there informations :

Group 1 : Attribute1 Attribute2

Group 2 : Attribute1 Attribute2

I like to display all attributes and also the group's name in the product.

Best Answer

The same question was answered on SO, here.
The main idea is to create a block similar to Mage_Catalog_Block_Product_View_Attributes. The difference is that, in your new block, the attributes are grouped by the group_id.
You also need a template similar to catalog/product/view/attributes.phtml (or you can use that one) where you can arrange the data from the block as you want.