Log in
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 Magento store configuration.

Developers use this class to verify whether emails for orders, shipments, invoices, creditmemos, and their comments can be sent before triggering email notifications, ensuring emails are only sent when the merchant has enabled them in admin settings.

Public Methods

  • canSendNewOrderConfirmationEmail()
  • canSendNewOrderEmail()
  • canSendOrderCommentEmail()
  • canSendNewShipmentEmail()
  • canSendShipmentCommentEmail()
  • canSendNewInvoiceEmail()
  • canSendInvoiceCommentEmail()
  • canSendNewCreditmemoEmail()
  • canSendCreditmemoCommentEmail()