cancel
Showing results for 
Search instead for 
Did you mean: 

Product Details group to group attributes in magento2

Product Details group to group attributes in magento2

Hi, as the title (I hope that is clear), I need you in detail of the product, when the attributes appear, they are grouped by attribute group. Type as does the icecat for its technical specifications.

Eg:

 

https://it.icecat.biz/en/p/samsung/ue32j6300akxzt/led-tv-Samsung-UE32J6300AK-32-Full-HD-Smart-TV-Wi-...

 

 

2 REPLIES 2

Re: Product Details group to group attributes in magento2

It requires a custom programming.

See how are the attributes shown on a frontend product view: https://mage2.pro/t/855

Re: Product Details group to group attributes in magento2

Thanks for the reply. I understand where change but I can not get the attribute group:

 

my problem is that in this file "/www/site/vendor/magento/module-catalog/Block/Product/View/Attributes.php"

 

After this code:

 

if (!$product->hasData($attribute->getAttributeCode())) {
    $value = __('N/A');
} elseif ((string)$value == '') {
    $value = __('No');
} elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) {
    $value = $this->priceCurrency->convertAndFormat($value);
}

 

I have to get me out of the group attribute of the current attributes, but I can not figure out how.

 

Now I found this code for magento1, but does not work for magento2:

 

$group = 0;
if( $tmp = $attribute->getData('attribute_group_id') ) {
$group = $tmp;
}

Thanks