Merge 'Detail' and 'More Information' tabs into And want to display data of 'More Information' above the details page data.
Solution in Magento 1.x is here: http://magento.narrativecard.com/merge-product-description-addition-information-tabs-magento/. It can help community.
Best Answer
Out the box, the two tabs in question - 'Detail' and 'More Information' are in directories:
Detail:
Block -
vendor/magento/module-catalog/Block/Product/View/Attributes.php
View -
vendor/magento/module-catalog/view/frontend/templates/product/view/attribute.phtml
More Information
Block -
vendor/magento/module-catalog/Block/Product/View/Description.php
View -
vendor/magento/module-catalog/view/frontend/templates/product/view/details.phtml
So we are going to put the contents of 'More Information' underneath the contents of the 'Details' tab:
Create a new module with the normal
registration.php
.etc/module.xml
etc/di.xml
Now we need to replace the 'Details' tab contents:
view/frontend/templates/product/view/details.phtml
But this makes use of the function
getAdditionalData()
so we need to add in that blockBlock/Magento/Catalog/Block/Product/View/Description.php
We also need
view/frontend/templates/product/view/attribute.phtml
and finally...
view/frontend/layout/catalog_product_view.xml
otherwise the existing layout file is expecting to find our view files in vendor/magento...