Skip to content

Notifications and Emails

EDD Sell Services keeps buyers and sellers informed through on site live notifications and through emails built on the Easy Digital Downloads email system.

When “Enable live notification” is on, each workflow event records a row in the wp_edd_sell_notification table addressed to the user who needs to know. The frontend polls an AJAX endpoint (sell_services_notification) which returns unread notifications, links each to the relevant single order screen, and marks them read.

Notification events cover: requirement filled, new conversation message, final delivery sent, final delivery accepted, final delivery denied, and review received.

The Notification settings tab lets you edit the text for each event, plus a notification title. Three placeholders are replaced at display time:

  • [sender-name] the name of the person who triggered the event.
  • [service-name] the product name.
  • [order-id] the order (payment) id.

These notification strings are registered for translation through WPML.

When “Enable emails for conversation” is on, workflow events send an email through EDD’s purchase receipt mailer to the other party. The subject and body adapt to the current state, for example asking the buyer to submit requirements, telling the seller requirements were received, or telling either side a delivery is waiting for approval or review.

The initial order receipt is also rewritten to remind the buyer that the seller cannot start until requirements are provided, with a link to fill them out.

When “Send email to support agent” is on, the users assigned to the product (from Assign Users) are added as Cc recipients on conversation emails so support staff stay in the loop.

Two WordPress cron tasks run the time based parts of the workflow:

  • edd_sell_services_customer_cron_hook runs hourly. It emails buyers who have not submitted requirements after the chosen delay (12 or 24 hours) and marks each order reminded once.
  • edd_sell_services_auto_complete_service_order runs daily. It auto completes orders that have been waiting for approval longer than the “Auto complete service order” number of days.