comment faire pour obtenir l'attribut de groupe dans magento

J'ai besoin d'obtenir le groupe d'attributs d'un certain attribut , comment puis-je faire cela ?

je pense que j'ai eu l'attribut id de groupe mais je n'arrive pas à obtenir les attributs de ce groupe.

    $attributes = $_product->getAttributes();

    foreach($attributes as $attribute)
    {
    $group_id =  $attribute->getData('attribute_set_info/' . $_product->getAttributeSetId() . '/group_id'); 
    print_r($group_id);          

    }  

Je serais vraiment reconnaissant si quelqu'un pouvait m'aider , merci 😉

OriginalL'auteur jarus | 2010-06-22