Magento ver. 2.4.3 sort attributes in additional tab on catalog product view

attributessort

I need to re-order / sort the attributes on product detail page.

They are sorted with there attribute_id but I don´t want to delete and recreate them.

I know that the attributes can be sorted for the layered navigation with a Position value in Storefront Properties settings but it´s about the position in catalog product view > additional tab.

I´m not sure why I couldn´t find any answer somewhere but there should be some simple solution for this?

I would be very grateful for any hint

Best Answer

enter image description here

Do you mean this tab? You want to reorder, for example 'Pattern' to be first in the list? If so, you could override Magento_Catalog::product/view/attributes.phtml in your theme, and add custom logic inside the foreach statement. Maybe add all attributes to a new array but in the order you need, and after that loop through them and output on the frontend

Related Topic