Skip to content

Add a row count to the order sales view items table – Magento 2.4

We want to add a row count in the order sales view items table.

So that we can see and define the rows, to make it more easy to manage the order.
We already tried $block->getItem()->getId() for the class MagentoSalesBlockAdminhtmlItemsColumnDefaultColumn but the problem is that this number is not specific for this order but the Id of all orders.

How can we achieve this?

enter image description here