\FollowUpEmail
Automated email that can be sent for carts matching a certain status after X days. If the order is still a Cart status it includes a link to reclaim the cart.
It can optionally include a summary of the order in the
email.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class FollowUpEmail
extends DataObject
{
- // constants
- const TO_ADMIN = 'Admin';
- const TO_CUSTOMER = 'Customer';
- // members
- private static array $db = ;
- private static array $many_many = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public void canCreate()
- public void canEdit()
- public void canDelete()
- public FieldList getCMSFields()
- public string ActiveNice()
- public string getTitle()
- public array getStatusesArray()
- public static string generate_hash()
- public array getSubstitutions()
- public array performSubstitutions()
- public Email|null getEmailForOrder()
- public void sendToApplicableOrders()
Hierarchy
Extends
- DataObject
Constants
Name | Value |
---|---|
TO_ADMIN | 'Admin' |
TO_CUSTOMER | 'Customer' |
Members
private
- $db
- $defaults
- $many_many
- $searchable_fields
- $summary_fields
Methods
public
- ActiveNice()
- canCreate()
- canDelete()
- canEdit()
- generate_hash()
- getCMSFields()
- getEmailForOrder() — Constructs an email object for the given order (if possible)
- getStatusesArray()
- getSubstitutions()
- getTitle()
- performSubstitutions()
- sendToApplicableOrders() — Sends all