Marly's Concept

This manual describes the plugin screen by screen, from the first start to the hooks for developers. Red boxes flag what surprises or has consequences; grey boxes explain why something works the way it does.
Version 1.5.4.

1. Who this plugin is for

Seven carts out of ten never make it. The visitor fills a cart, reaches the payment page,
and stops: a question left unanswered, a shipping cost that surprises, a phone that rings.
They will not come back on their own, and you will not even know they were there.

Marly’s Abandoned Cart remembers what was in the cart and the person’s
address, then sends them a reminder with a link that restores their cart exactly as they
left it
. One click, and they pick up where they stopped.

What it does not do

It chases nobody. A cart without an address yields nothing: until the visitor has started
entering their email, there is nothing to remind them about. That is deliberate — the only
alternative would be to track people who asked for nothing.

It sends a single reminder. The follow-ups — the second one
after twenty-four hours, the third with a discount code — belong to the Pro edition, and
their code is not in this package.

2. What you need before you start

WooCommerce must be installed and active. The plugin hooks into its
events: add to cart, remove an item, checkout, order paid. Without it, there is no cart to
watch.

WordPress 6.0 or newer
PHP 7.4 or newer
WooCommerce active, with cart and checkout in place
Email your site must already be able to send a message

If WooCommerce order emails do not arrive, the reminders will not
arrive either: they take the same road. Sort the sending out first — a delivery service, or
Marly’s Mail — then come back here.

3. The first start

On activation, the plugin creates three tables and its email template, then schedules a
task that runs every fifteen minutes. An Abandoned Cart
menu appears in the sidebar, under WooCommerce.

The five minutes that are enough

  1. Open Abandoned Cart › Settings.
  2. Check the sender name and sender address: they come
    from your site name and your admin address.
  3. Leave the abandonment delay at 60 minutes and the first reminder at
    60 minutes to begin with.
  4. Open Templates, read the wording on offer, change whatever does not
    sound like you.
  5. Save. That is all: the plugin is working from now on.

Nothing goes out until a real visitor has left a cart and an address. You
are not going to flood anyone by activating the plugin.

4. How an address is remembered

This is the point everything depends on: no address, no reminder. The plugin looks for
one in three ways, in this order.

1. The visitor is logged in the address on their account is taken
directly.
2. They type their email at checkout a small script follows the field and
sends the address as soon as it is valid — without waiting for them to
click “order”.
3. They submit the checkout the billing address is picked up as WooCommerce
processes the order.

The script is loaded only on the cart page and the checkout page. It
follows nobody anywhere else on the site.

It is the second route that pays: it catches the people who stop
during payment. If your checkout replaces the email field with another kind of form
— some one-page checkout add-ons do — that route stops working, and only logged-in visitors
remain.

The cart follows the person

On every addition, removal or quantity change, the snapshot of the cart is updated. And
when a visitor logs in, the cart they left as a guest is attached to their account: they are
not reminded twice.

5. When a cart becomes “abandoned”

A cart is not abandoned because it is full, but because it has stopped moving. The
abandonment delay — 60 minutes to start with — is the silence after which
the plugin takes it that the person has gone.

The scheduled task runs every fifteen minutes. It looks at carts that have not moved for
longer than the delay, and marks them abandoned. That is when the reminder’s clock
starts.

active the cart is still moving, nothing is touched
abandoned the silence has passed the delay; the reminder is due
recovered an order has been paid with this address

Too short a delay annoys: someone comparing two items in another tab has
abandoned nothing. Too long a delay arrives after the person has bought elsewhere. One hour
is a good starting point; look at your recovery rate before moving it.

6. The reminder: what goes out, and when

The reminder goes out once, after the reminder delay, counted from the
moment the cart was marked abandoned — not from the last visit.

An example, with the original settings:

2:00 pm the visitor fills a cart and stops
3:00 pm one hour of silence: the cart is marked abandoned
4:00 pm one more hour: the reminder goes out

Between 3 and 4, the task runs four times and does nothing: it is not time yet. The email
will go out on the first run after the deadline — so at most a quarter of an hour
later.

A reminder already sent never goes out again: every send is recorded,
and the plugin checks that record before sending. Even if the task is triggered several
times in a row, nobody receives the same message twice.

The link that restores the cart

The button in the email does not lead back to the shop: it puts the items back in
the cart
as they were, then goes to the checkout. The person does not have to find
again what they had chosen.

7. Writing the email

Abandoned Cart › Templates opens the subject and the body of the message.
The body accepts HTML: it is wrapped in a plain layout that picks up your logo and your
colour.

The variables

Write them as they are; they are replaced when the message is sent.

{{first_name}} the first name, if it is known
{{last_name}} the last name
{{email}} the recipient’s address
{{cart_items}} the table of items, with quantities and
prices
{{cart_total}} the cart total, formatted
{{cart_url}} the link that restores the cart
{{shop_name}} the name of your shop
{{shop_url}} its address
{{coupon_code}} the discount code, if you offer one
{{coupon_amount}} its amount or its percentage

A misspelt variable is not replaced: it shows up as written in the
message received. Always send yourself a test before opening the floodgates.

The tone that works

A reminder is not an advert. The person knows what they put in their cart; simply tell
them it is still there, show them what is in it, and give the link. Short messages get more
replies than long ones.

8. The discount coupon

Off to begin with, and deliberately so. Once turned on, every reminder carries a discount
code created for that person: it does not circulate, it expires, and it can
be used only once.

Type percentage or fixed amount
Amount 10 to start with — so 10 % or €10, depending on the type
Validity 3 days

Think before you turn it on. If you offer a discount on every abandoned
cart, your regulars will start abandoning their cart on purpose. Many shops keep the
discount for the third reminder — available in the Pro edition — or for carts above a certain
amount.

9. The carts screen

Abandoned Cart › Carts lists what has been remembered: the address, the
contents, the total, the status and the dates. That is where you see what is really
happening.

What to look for there:

  • Many carts, few addresses? The email field on your checkout is not the
    one the script follows. See the previous section on how an address is remembered.
  • Abandoned carts with no reminder sent? The delay has not elapsed yet,
    or the scheduled task is not running.
  • Reminders sent, no replies? It is the message that needs rewriting, not
    the machinery.

10. The dashboard

Four figures, and only one really counts.

Abandoned carts the number of carts left behind
Recovered carts those that led to a paid order
Recovered revenue the total of those carts
Recovery rate recovered ÷ (abandoned + recovered)

Recovered revenue is what tells you whether the plugin earns
its keep. A rate of 5 to 15 % is common for a single reminder. Below that, first check that
the emails really go out, then what they say.

A cart counts as “recovered” as soon as an order is paid with the same
address — even if the person would have come back anyway. The figure is therefore a
ceiling, not a net gain. Do not present it otherwise to your accountant.

11. The settings, one by one

Abandonment delay minutes of silence before a cart is called abandoned.
60
Reminder 1 — active on to begin with.
Reminder 1 — delay minutes after abandonment before sending.
60
Sender name what the recipient sees. the site name
Sender address the admin address
Logo shown at the top of the email. Empty = the shop name in text.
Colour that of the buttons and the headings. #0073aa
Discount coupon off, with its type, amount and validity.
Language forces the language of the emails, whatever the site’s.
GDPR compliance on to begin with — see below.

The sender address must belong to your domain. An
address at @gmail.com or @hotmail.com sends your reminders straight
to the spam folder: mail providers check that the domain allows your server to write in its
name, and Gmail does not.

12. The language of the email

The message is written in a language chosen as follows, in order:

  1. the language forced in the settings, if you have chosen one;
  2. failing that, the site language;
  3. failing that, English.

If you sell in several languages, forcing a single one is not the answer:
better to let the site language follow the visitor’s — which is what
Marly’s Languages does — and write the template in each of them.

13. Privacy and GDPR

Remembering the address of someone who has not ordered is a processing of personal data.
It is lawful — it is a legitimate interest of the trader — on three conditions: say so, keep
a record of it, and allow it to be stopped.

What the plugin provides

  • Export: an access request in Tools › Export Personal Data
    returns the carts for that address.
  • Erasure: a deletion request removes their carts and their sends.
  • Unsubscribe: every reminder carries a link that stops the sends, with no
    account and no password.

What remains yours to do

Your privacy policy must state that unfinished carts are kept and followed up, for how
long, and how to object. Marly’s RGPD writes that paragraph if you use
it.

The unsubscribe link cannot be removed. A commercial reminder with no
way to object is a breach, and it is the kind of failing that is visible at a glance on the
message received.

14. When the customer comes back

As soon as an order is paid with the address of an abandoned cart, that cart moves to
recovered and the date is recorded. Two moments trigger that marking: the processing
of the order at checkout, and the confirmation of payment.

The match is made on the email address, not on the contents
of the cart. Someone who comes back to buy something else counts as recovered. That is the
safer choice: better not to remind someone who has just bought than the other way round.

15. What the Pro edition adds

The code for the features below is not in this package: there is nothing
to unlock here.

Three reminders instead of one: the reminder, the nudge at twenty-four hours,
the last chance at seventy-two.
SMS for carts whose phone number is known.
WhatsApp the same, by messaging.
Detailed statistics opens, clicks and recoveries, reminder by reminder.

The second reminder is the one that pays most: the first catches the
distracted, the second those who were hesitating.

16. When nothing goes out

No cart appears at all

Is WooCommerce active? Are the cart page and the checkout page the ones declared in
WooCommerce? The script is loaded only on those two pages.

Carts, but with no address

That is the capture. Test it yourself: open the checkout in a private window, type an
address in the email field, without submitting, then look at the carts
screen. If nothing appears, your checkout is not using the standard field.

Carts stay “active”

The scheduled task is not running. WordPress only fires its tasks when a page is visited:
on a quiet shop, they fall behind. The clean answer is a real system task every fifteen
minutes.

Marked abandoned, but nothing is sent

The reminder delay may not have elapsed — it counts from the abandonment, not from the
visit. Otherwise it is the sending itself: if WooCommerce order emails do not arrive either,
the problem sits upstream of this plugin.

Reminders land in the spam folder

Nine times out of ten, the sender address does not belong to your domain. Use an address
on your own domain name, and check that its SPF and DKIM records are in place.

17. For developers

The tables

{prefix}mac_carts a remembered cart: address, contents, total,
status, dates
{prefix}mac_sequences what was sent, and the outcome
{prefix}mac_templates the templates, by channel and by step

The scheduled task

mac_process_abandoned_carts, every fifteen minutes
(mac_every_15_minutes).

Useful entry points

MAC_DB::get_stats() the dashboard figures
MAC_DB::get_template( $channel, $step ) an active template
MAC_Email::send( $cart, $step ) sends a reminder
MAC_Core::get_recovery_url( $id ) the link that restores the
cart

On uninstall

The tables and the settings are removed. Export whatever you want to keep before
deleting the plugin
: deletion cannot be undone.