Flat Rate - Delivery is coming from the database column shipping_description of sales_order table.
If you want to changes Flat Rate - Delivery text only for order confirmation mail then best of idea add a new parameter to order confirmation email using event email_order_set_template_vars_before and on this parameter will have to do a string replace on ...
the model Magento\Email\Model\Transport and the function public function sendMessage() within this model is the deepest part where you can stop and reroute the email.
However, at this point you don't have anymore access to the Magento template identifier that is used. So, if you do need to interact with Magento data, I believe your next fallback is to ...
Check below code
I just get row total below SKU using the below code and it works for me.
<P class="RowCode"><?= __("Row Totel")?>: <?= $block->escapeHtml($_item->getRowTotal())?>
Add above code in your
Then try to flush Magento cache ...
I think you want something like this
Much of the hard work is done by the plugin
public function afterSend(