문제

I want to know, which file responsible for sending an email to customer when a shipment is created by admin (IF CHECKED Email Copy of Shipment)

도움이 되었습니까?

해결책

You can check this file..

vendor/magento/module-shipping/Controller/Adminhtml/Order/Shipment/Save.php

if (!empty($data['send_email'])) {
    $this->shipmentSender->send($shipment);
}

If Email Copy of Shipment checkbox is selected in Backend and you will try to Submit shipment then this code will send email to customer.

vendor/magento/module-sales/Model/Order/Email/Sender/ShipmentSender.php

And in above model file there is send() function available, that will send email to customer.

Hope it will help you!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top