Option to disable email sending

Created on 6 March 2025, 28 days ago

Problem/Motivation

Currently, the commerce_abandoned_carts module automatically sends abandoned cart reminder emails based on the configured schedule. However, there is no built-in option to completely disable email sending.

This feature request proposes adding a configuration option to the module’s settings form that allows administrators to disable email notifications without disabling the module itself.

Steps to reproduce

  1. Enable commerce_abandoned_carts.
  2. Configure email settings.
  3. Emails are always sent based on the schedule, with no way to disable them from the UI.

Proposed resolution

  • Add a new checkbox to the module’s configuration form at /admin/commerce/config/abandoned_carts (or the relevant settings page).
  • Label: Disable abandoned cart emails
  • Description: "If checked, no abandoned cart emails will be sent, but tracking will continue."
  • Default value: Unchecked (emails are enabled by default).
  • Modify the email-sending logic to respect this setting.

Remaining tasks

  • Implement the configuration setting in the admin UI.
  • Modify the email dispatch logic to check this setting before sending emails.
  • Update the module documentation, if necessary.

User interface changes

A new checkbox will be added to the module's configuration form.

API changes

No API changes are expected.

Data model changes

A new configuration setting will be added to store the email disable option.

Feature request
Status

Active

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024