Trying to override InvoiceSender
I tried to override InvoiceSender (in /app/code/UFS/Sales/Model/Order/Email/Sender/InvoiceSender.php) but it doesn’t work and I don’t understand why. I added “‘created_at_formatted’ => $order->getCreatedAtFormatted(3)”. My di.xml looks like: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoSalesModelOrderEmailSender” type=”UFSSalesModelOrderEmailSender” /> </config> My InvoiceSender.php looks like: <?php /** *… Read More »Trying to override InvoiceSender