- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2016
04:35 AM
03-11-2016
04:35 AM
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:
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2016
06:07 AM
03-11-2016
06:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2016
06:35 AM
03-11-2016
06:35 AM
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