If you buy a configurable product, then all options are showing in the invoice for example at www.example.com/sales/order/print/order_id/14807/
My team wants me to remove all the configurable options and only show the product name.
I figured out, that the layout is here:
vendormagentomodule-salesviewfrontendlayoutsales_order_print.xml
this is the template:
vendormagentomodule-salesviewfrontendtemplatesorderitems.phtml
it contains this line, which is reponsible for the items being rendered:
<?= $block->getItemHtml($item) ?>
So I analysed the method in the block
vendormagentomodule-salesBlockItemsAbstractItems.php
public function getItemHtml(MagentoFrameworkDataObject $item)
{
$type = $this->_getItemType($item);
$block = $this->getItemRenderer($type)->setItem($item);
$this->_prepareItem($block);
return $block->toHtml();
}
but I have no clue how I have to modify it