Helper
Data
Magento\Sales\Helper\Data
What it does
This helper class provides utility methods to check if various sales-related email notifications are enabled in the store configuration.
Developers use it to determine whether to send transactional emails for orders, shipments, invoices, and credit memos before attempting to send them, ensuring compliance with store settings.
Public Methods
- canSendNewOrderConfirmationEmail()
- canSendNewOrderEmail()
- canSendOrderCommentEmail()
- canSendNewShipmentEmail()
- canSendShipmentCommentEmail()
- canSendNewInvoiceEmail()
- canSendInvoiceCommentEmail()
- canSendNewCreditmemoEmail()
- canSendCreditmemoCommentEmail()