Newsletter
Collects the addresses of people who want the shop’s news and offers, and sends them campaigns from the shop itself — see the next tab. The list can also go to an outside mailing service as a CSV.
Where people subscribe
The “Newsletter subscription” block — put it in any zone (the footer, the home page). Drawn by the theme, or by your own HTML:
In your HTML What it is {form}the field and the button — required {heading}{text}{button}the block’s own words, in the visitor’s language {privacy_link}“privacy policy” as a link (the module’s setting), or nothing {subscribers}how many are subscribed and every shop placeholder (
{shop_name},{phone}…). Your own HTML is written by those who may write raw HTML in blocks.Under the basket — a small form (setting “Offer to subscribe on the basket page”).
At checkout — the tick “Subscribe to news and offers” (setting); the order’s email is subscribed when the order is placed. The tick is not on from the start unless you choose so — a tick put there for the customer is not their consent.
In the customer’s account — “Newsletter”, a switch.
Confirmation
Every new address gets a letter with a link; it counts only once the link is followed (“Confirm every address by a letter”, on by default). Not asked again: a signed-in customer whose address is already confirmed. The link opens a page with a button — a mail service’s scanner opens every link in a letter by itself and must not confirm anybody. The letter’s words are on System → Letters, “Newsletter: confirm the subscription”.
The form is guarded like the shop’s other forms: a trap for bots, a limit per address and per visitor, a CAPTCHA if the guard module asks for one.
Unsubscribing
/newsletter/unsubscribe/<token> — a page with a button, no sign-in. Letters
about orders still come.
Marketing → Subscribers
The list by status (subscribed, waiting for confirmation, unsubscribed), search, where from. Download CSV gives what the screen shows. Import takes addresses one per line or the first column of a CSV, as subscribed — only addresses whose owners agreed elsewhere; somebody who unsubscribed here stays unsubscribed.
Personal data
A subscriber is in the shop’s personal-data registry: exported with the evidence of consent (when, from which address, what was asked) and erased on request.
For developers
newsletter.subscriber.changed (subscriber, from, to) — for a mailing
service’s connector or an automation.
Campaigns
Marketing → Campaigns — letters to the subscribers: news, a sale, new arrivals.
The letter
A subject, a preheader (the grey line an inbox shows beside the subject), a heading and the text, in the shop’s letter frame (colour, logo, footer — System → Letters), in each reader’s language: one language is written per save, like every text of the shop; a reader whose language the campaign has no words in gets the base language.
The reader’s language is their ACCOUNT’s when they have one — the shop remembers it whenever they switch the storefront’s language, on any device — else the language of the page they subscribed on.
In the text:
{product:SKU}alone in its paragraph — the product’s card: its picture, name, price and a button. A product the shop does not show is left out.{products:SKU1,SKU2,SKU3}alone in its paragraph — a grid of tiles with pictures: three a row (two for two or four products;|2at the end says how many). On a phone the tiles stand one under the other.{name}and{email}— the reader’s own (the name of their account, if they have one). They work in the subject and the heading too.- Pictures, galleries and HTML blocks — the editor’s own buttons, once the campaign is saved.
Every letter ends with “Unsubscribe” — the campaign cannot lose it — and carries the headers mail clients use for their own unsubscribe button (Gmail and Yahoo require them of anybody sending in bulk).
Who gets it
Every subscribed address; with conditions, those that meet ALL of them:
| Condition | From |
|---|---|
| Language of the letters | the subscriber |
| Where they subscribed | the subscriber |
| Bought / Did not buy (in the last N days) | orders |
| Bought with delivery to a town | orders |
| Has points (at least N) | points |
An order is a purchase unless it was cancelled, declined, failed, merged or is still waiting for its online payment. The number beside the heading is counted as the conditions change, and once more when the campaign goes out.
Sending
Send a test — one letter to your address (or the one typed), counting nothing. Send now or at a time — the letters go out in the background, at the pace set in the module’s settings (“Campaign letters per minute”: ask the mail server what it allows). A campaign that waits can go back to a draft; one that is going out can be stopped — the letters already sent stay sent. Once it is going out, its words stay as they were sent; Duplicate makes the next issue.
The background work needs the queue worker and the scheduler (schedule:run
every minute), like every background task of the shop.
The numbers
Sent, opened, clicked, unsubscribed, not delivered — each reader counted once — and the links they clicked. Opens are counted by a picture in the letter: a mail client that does not show pictures is counted only when its reader clicks a link.
For developers
A condition is a kind of the registry newsletter.segments — answered by the
module that owns the data, narrowing a query of m_newsletter_subscribers
(see Torgash\Newsletter\Campaigns\Segments). A kind nobody answers any more
sends to nobody.