Repository navigation
Releases
Releases · michalper/ordo
1.12.0
Added
- Segment blast campaign trigger (
segment_blast) — a one-time/scheduled "send this campaign
to a segment" trigger: dispatches once per customer currently matching a chosen segment,
optionally delayed to a future date/time, dispatched at most once ever per customer regardless
of how many scans it takes to cover a large segment. See ADR 0075. - On-site search "no results" campaign trigger (
search_no_results) — reacts to a storefront
search that returned zero results, the same two-hop tracking-endpoint-to-queue shape as the
existing exit-intent trigger. See ADR 0076.
1.11.1
Fixed
CampaignDispatcher::resumeScheduledAction()had no exception handling at all around the
resumed action - a throw from adelay_minutes-deferred or quiet-hours-deferred action escaped
uncaught straight toCron\RunScheduledCampaignActions, which retries from the same resume
point and could re-run already-succeeded actions earlier in the same chain. Now caught, logged,
and the rest of that campaign's own action chain stops - consistent with how an unknown
condition/action type already failed closed, extended to a known type's own thrown exception.
See ADR 0068.OllamaClientcould throw instead of failing soft - the rate limiter's ownthrottle()
call ran before thetryblock wrapping the actual HTTP request, so a throttle-store failure
(e.g. a transient DB error) escaped uncaught instead of being treated the same fail-soft way
this class documents for every other failure mode ("never throws").- N+1 product loads in the price-watch scan crons (
ScanPriceDropAlerts/
ScanBackInStockAlerts) -AbstractPriceWatchScanCronloaded one product per watch row even
when many rows in the same batch watched the same product; now batch-loaded once per distinct
product viaProductRepositoryInterface::getList(), mirroring this module's existing
CustomerMapBuilderbatch-load shape. - Forged customer tags via CSRF on
Controller\Track\Event— unlike every other
Controller\Track\*endpoint,Event::validateForCsrf()unconditionally returnedtrueeven
for a logged-in request. A forged cross-site POST could bind an attacker-chosen
event_type/event_keyto a real, authenticatedcustomer_id; onceVisitorAggregator's
threshold was crossed, it permanently tagged that customer's account from it - a first-class
input to this module's own campaign/segment targeting and ad-audience sync. Same shape as the
push-subscription hijack fixed above (and previously), now closed the same way: delegated to
Model\Track\VisitorIdentityResolver::validateForCsrf()(skips the check for anonymous
requests, checks Origin/Referer for a logged-in one).DismissNotification/
SubmitSurveyResponsehad the same gap but with no cross-account impact (ownership is already
checked before acting) - tightened for consistency.
1.11.0
Added
- Storefront widget for
generic_surveyquestions —tracker.js'srenderSurvey()now
renders a free-text input or choice buttons for ageneric_surveyprompt'squestion_type
(previously it only ever rendered the legacy 0-10 NPS row, even for a text/choice question),
and the GraphQLsubmitOrdoSurveyResponsemutation gained aresponseTextarg (mirroring the
REST transport's ownquestion_typebranching), closing the gap ADR 0061 explicitly left open.
See ADR 0064.
Fixed
- Product performance report grid's live
sales_order_itemjoin had no real-database test —
only ever unit-tested against a mocked connection. New
Test/Integration/ProductPerformanceGridCollectionTestproves the real purchase-count join
(summed, canceled orders excluded) and the NULLIF-guarded abandon rate against a real database.
1.10.0
Added
- Gamified "spin the wheel" reward popup —
ShowPopup's params gain an optional
reward_tiersarray of{label, weight, coupon_rule_id}entries; a new
Model\Campaign\RewardTierSelectorpicks one with a real, re-rolled-per-delivery random weight
(deliberately notSplitVariantSelector's sticky-per-customer determinism), and a tier with a
coupon_rule_idgets a real single-use coupon minted via the existingModel\CouponGenerator.
Frequency-capped byShowPopup's own existing cap, so a visitor can't just keep re-spinning.
view/frontend/web/js/tracker.jsrenders a brief spin reveal and a copyable coupon code,
dependency-free. See ADR 0063. - Digital loyalty wallet pass (Google Wallet) — a logged-in customer's "My Offers" account
page now has an "Add to Google Wallet" button producing a real, RS256-signed "Save to Google
Wallet" link embedding their live points balance (LoyaltyPointsManager) and tier
(LoyaltyTierCalculator) as a scannable membership card (Model\Wallet\GoogleWalletLoyaltyObjectBuilder/
GoogleWalletJwtBuilder/GoogleWalletPassLinkBuilder), no vendor SDK - same hand-rolled-protocol
precedent asModel\Push\WebPushCrypto. Also exposed over REST
(GET /V1/ordo/loyalty-wallet-pass/google) for a headless/PWA storefront. Apple Wallet is
deliberately out of scope for v1, and real on-device verification is a permanent, accepted test
gap, same class as the existing Google Ads Customer Match/WhatsApp Business verification gaps -
see ADR 0062 andROADMAP.md's "Test coverage" section. - Zero-party-data survey question (text/choice) — a new
generic_surveycampaign action
(Model\Campaign\Action\GenericSurvey) asks a free-text or multiple-choice question, on the
sameordo_survey_promptclaim/deliver/respond lifecycle as the existingnps_surveyaction
(three new nullable columns:question_type,choices,response_text), and a new
survey_response_equalssegment/campaign condition
(Model\Campaign\Condition\SurveyResponseEquals) reads back the customer's most recent
answered row for that specific question.nps_survey/nps_score_at_leastare completely
unchanged. The storefront widget (tracker.js) still only renders the legacy 0-10 NPS prompt —
rendering a text/choice question in the bundled widget is a known, separate follow-up. See ADR
0061. - Two-way conversation replies — an admin can now reply to an inbound SMS/WhatsApp message
directly from the "Conversations" grid: a newController\Adminhtml\ConversationMessage\Reply
(POST) re-checks consent viaConsentManagerand callsSmsSenderInterface/a new
WhatsAppSender::sendFreeform()directly, based on the original message's own channel, through a
newModel\Conversation\OutboundReplySenderservice —InboundMessageProcessoritself stays
receive-only and unchanged. A newdirectioncolumn onordo_conversation_message(default
inbound, zero backfill) lets the grid render both directions. See ADR 0060. - Wishlist abandonment reminder — new
Cron\SendWishlistAbandonmentRemindersscans Magento
core's own nativewishlist/wishlist_itemtables for items added more than a configurable
number of days ago with no non-canceled order line for that exact SKU placed since, and
dispatches a newwishlist_abandonedcampaign trigger (TRIGGER_WISHLIST_ABANDONED) — the
gap left between cart and browse abandonment, claimed via a new
ordo_wishlist_abandoned_reminder_logtable the same way every other reminder cron here avoids
double-sends. New "Wishlist Abandonment" section under Stores > Configuration > Ordo
Automation. See ADR 0059. - Email one-click unsubscribe —
send_emailcampaign sends now carry a no-login
List-Unsubscribe/List-Unsubscribe-Postheader pair (RFC 8058) plus a visible footer link in
campaign_generic.html, pointing at a newController\Email\Unsubscribeendpoint backed by a
stateless, signed token (Model\Email\UnsubscribeTokenManager— no new table, no DB lookup to
verify) that callsConsentManager::setConsent()directly. See ADR 0058. - Campaign holdout group — new admin-configurable
holdout_percent(0-100, default off) on a
campaign deterministically, randomly withholds that percent of matching customers from every
action, logging them intoordo_campaign_outcome_logwith a newis_holdoutflag
(Model\Campaign\HoldoutSelector,CampaignOutcomeLogger::logHeldOut()/getHoldoutStats()) so
their organic conversion rate can be compared against the sent group's — true incremental-lift
measurement, not just split-variant comparison. See ADR 0057. - Referral duplicate-identity signal —
Observer\RedeemReferralCodenow captures the referred
customer's registration IP, andReferralManager::recordSignup()flags
(ordo_referral.duplicate_ip_flag) a signup whose IP matches another referred signup already
recorded under the same referrer — the common self-referral-via-second-account reward-farming
shape, without a new fraud-scoring engine. Detect and surface, not block: the referral is still
recorded, flagged on a new read-only "Referrals" admin grid (ordo/referral/index) plus a
dashboard stat card. See ADR 0056. - Campaign chain exit condition — a campaign can now set an optional
exit_conditionsJSON
field (AND-joined, same{type, params}shape as an entry condition) that
CampaignDispatcher::resumeScheduledAction()re-checks on every delayed-step resume; if
satisfied, the rest of adelay_minutesdrip is skipped instead of running unconditionally
regardless of whether the customer already converted. Every pre-existing campaign (no exit
conditions configured) is unaffected. See ADR 0055. - Storefront consent preference center — a logged-in customer can now see and change their own
channel (email/SMS/push/WhatsApp/RCS) and topic (promotional/account-updates) consent from REST
(GET/PUT /V1/ordo/consent-preferences/mine*), GraphQL (ordoConsentPreferences/
setOrdoConsent/setOrdoConsentTopic), or a new "Communication Preferences" storefront account
page — all three backed by oneApi\ConsentPreferencesManagementInterface. See ADR 0054. - Churn-risk segmentation condition — new
churn_risk_at_leastcondition
(Model\Campaign\Condition\ChurnRiskAtLeast,Model\ChurnRisk\ChurnRiskCalculator) generalizes
ReorderCycleAtRisk's self-relative "drifting from their own baseline" signal to every customer
with at least 2 orders, not just ones with an already-detected, SKU-specific reorder cycle. See
ADR 0045. - Stalled payment recovery — new
Cron\SendStalledPaymentReminders(hourly) reminds a
registered customer once about an order sitting in Magento's ownpending_paymentstate past a
configurable lead time, with deliberately hedged copy since this module can't tell an abandoned
online-gateway checkout apart from an offline method awaiting manual confirmation. See ADR 0047. - Gamified loyalty milestones — new
Cron\TagLoyaltyMilestonestags a customer the moment they
cross a fixed order-count milestone (1st/5th/10th/25th/50th order) or reach a Silver/Gold loyalty
tier, reusing the existingtag_addedtrigger andHas Tagcondition — no new trigger type or
table. See ADR 0046. - Double-sided referral rewards — new
referral_signed_uptrigger targets the referred
customer the moment their signup is recorded, the mirror image of the existing
referral_convertedtrigger (which still only targets the referrer once a real purchase
happens). See ADR 0048. - RCS as a messaging channel — new
send_rcscampaign action andConsentChannel::Rcs,
reusing SMS's own Twilio Account SID / API Key credentials through Twilio's RCS Business
Messaging surface (Model\Rcs\TwilioRcsSender) — only a Messaging Service SID config field is
new. See ADR 0049. - CLV and churn risk on Customer 360 —
Customer360SnapshotBuildernow surfaces
ClvCalculator::getProjectedClv()andChurnRiskCalculator::getChurnRiskRatioForCustomer()
alongside the existing RFM/order-history stats. See ADR 0050. - WhatsApp read-receipt tracking —
Controller\WhatsApp\Webhooknow writes a
MessageLogEvent::TYPE_READrow for Meta's "seen" receipt instead of dropping it, making
message_engagedusable for WhatsApp sends. See ADR 0051. - Churn-risk customers in the sales-rep digest — new
Cron\TagChurnRiskCustomersmirrors
TagReorderCycleAtRiskCustomers's add-then-clear-on-recovery shape, andSendSalesRepDigest
now groups by it too. See ADR 0052. - Split-test winner by revenue, not just click-through rate — new
AbTestDecisionMetric
config choice (CTR/conversion rate/revenue, defaults to CTR) forSplitWinnerCalculator,
reading conversion rate/revenue from the existingCampaignOutcomeLogger::getStats()data. See
ADR 0053.
1.7.0
Added
- GraphQL storefront API, Phase 1 — core tracking —
ordoTrackerPoll,trackOrdoEvent,
dismissOrdoNotification,submitOrdoSurveyResponse, so a headless/PWA Studio storefront can
track on-site behavior and read/act on popups/notifications/surveys without any
server-rendered Magento page. Thin GraphQL wrappers over the exact same service classes
Controller\Track\*already calls — no logic duplicated. Seedocs/adr/0032. - GraphQL storefront API, Phase 2 — My Offers —
ordoOffers,extendOrdoOffer,
ordoCreditLimit, so a headless/PWA Studio storefront can list/extend offers and read
credit-limit status without a server-rendered page or REST client.extendOrdoOfferand
ordoCreditLimitare thin wrappers over the sameApi\OfferManagementInterface/
Api\CreditLimitManagementInterfaceservices the existing REST routes already call. See
docs/adr/0033. - GraphQL storefront API, Phase 3 — price-watch & push subscriptions —
registerOrdoPriceWatch/unregisterOrdoPriceWatch,registerOrdoPushSubscription/
unregisterOrdoPushSubscription, closing out every phase of the GraphQL storefront API plan.
Thin wrappers over the existingPriceWatchSubscriptionManager/PushSubscriptionManager
services. Seedocs/adr/0034.
Fixed
Model\AdAudience\GoogleAdsSyncClientmigrated from the Google Ads API to the Data Manager
API — attempting to verify ad-audience sync against a real account found the old integration
target (OfflineUserDataJobService) now fails outright for any Google Cloud project without
Customer Match API history in a 2025-2026 grandfathering window, version bump or not. Three
further, independent real bugs fixed along the way: a long-sunset REST API version, a dead
partial-failure check (enablePartialFailurewas never set), and a long-running:runoperation
that was fired and forgotten, withCron\SyncAdAudiencesrecording success the instant the job
was merely accepted rather than actually completed. Seedocs/adr/0035.
1.9.0
Added
- Loyalty points program — a new, ongoing earn/redeem points balance (
ordo_loyalty_points_ledger),
distinct from the existing tier-basedModel\LoyaltyTierCalculator. Customers earn points on
every order and redeem them for a coupon through a newApi\LoyaltyPointsManagementInterface
service (REST + GraphQL:ordoLoyaltyPointsBalance/redeemOrdoLoyaltyPoints), reusing the
existingModel\CouponGenerator/cart-price-rule mechanism rather than a new discount system.
Optional expiry via a daily cron. See ADR 0044. - Newsletter signup popup — a standing, config-driven popup invites an anonymous visitor to
sign up for the store's newsletter after a configurable delay. Subscribes through Magento's own
real newsletter subscription and tags the visitor (newsletter_signup) so a campaign can react
via the existingvisitor_tag_addedtrigger — no new admin screen, no new trigger type. See
ADR 0043. - Low-stock PDP widget — new
window.ordoRenderLowStock(sku, containerSelector)theme
integration point renders "Only N left in stock" from a real, live stock quantity, once at or
below a configurable threshold (and always above zero — that's a different message). Same shape
as the existing social proof widget. See ADR 0042. - TikTok ad-audience sync — new
Model\AdAudience\TikTokSyncClient, syncing a segment's
hashed-email list to a TikTok Custom Audience alongside the existing Google Ads/Meta
integration. No ad-spend eligibility wall found for TikTok (unlike Google Ads Customer
Match) — the real gate is a discretionary TikTok for Developers app review, now pending. See
ADR 0041, including two implementation details honestly flagged as not yet verified against a
real account. - GA4 / Meta server-side conversion reporting — two new campaign actions,
send_ga4_event/send_meta_conversion_event, report a real order straight to Google
Analytics 4's Measurement Protocol or Meta's Conversions API from the server, bypassing ad
blockers and browser privacy settings that often stop the regular on-page tracking tag from
ever firing. See ADR 0040. - Social proof widget — new
window.ordoRenderSocialProof(sku, containerSelector)theme
integration point renders "N people viewed this today" from a real, live count of today's
product_viewevents for that SKU, once a configurable minimum is met. See ADR 0039. - Customer birthday / registration anniversary campaign trigger — new
customer_anniversary
trigger (Cron\DispatchCustomerAnniversaryCampaigns, daily) fires once per calendar year for a
registered customer whosecustomer_dobor account registration date matches today's
month+day, picked per campaign via the trigger's owndate_sourcefield. See ADR 0038.
Fixed
send_ga4_event/send_meta_conversion_eventcould leak a live GA4api_secret/Meta
access_tokeninto the application log and the persistedordo_message_send_retry.last_error
column — both actions pass their auth secret as a URL query parameter (the only format either
API accepts it in), and a failed outbound request embedded the full URL, secret included,
verbatim in the thrown exception's message. Found via a security review of this session's own
GA4/Meta work.Model\Http\JsonApiClient::postJson()now takes an optional list of query-param
names to redact before building that message; every other caller is unaffected since none of
them put a secret in the URL itself.
1.8.0
Added
- GTM dataLayer bridge —
tracker.jsnow optionally mirrors every tracked event
(page_view,product_view,category_view,checkout_start, any custom
window.ordoTrack()call) ontowindow.dataLayeras{event: "ordo_<type>", ordoEventKey},
gated by its owntracking > gtm_bridge_enabledtoggle (default off). Lets a store's existing
GTM container build GA4/Ads/Meta Pixel audiences from Ordo's own event taxonomy without this
module's own ad-audience sync. Doesn't load GTM itself — seedocs/adr/0036. - Exit-intent campaign trigger — a new
exit_intenttrigger fires the first time, per page
load, a visitor's mouse leaves toward the top of the browser window (the usual
"about-to-close-the-tab" gesture), gated by its owntracking > exit_intent_enabledtoggle
(default off). Anonymous-only, same shape asvisitor_tag_added. Lets a campaign show a
last-chance offer via the existing "Show Popup" action — no new action type needed. See
docs/adr/0037.
Fixed
Model\WhatsApp\WhatsAppSender/WhatsAppTemplateClientwere pinned to Meta Graph APIv20.0,
which Meta deprecated and removed on 2026-09-24 — found while planning real-account verification
forsend_whatsapp/WhatsApp templates (ROADMAP.md's "Test coverage" section). Meta's own
versioning policy defaults an expired version's calls to the next-oldest still-usable version
rather than erroring outright, so this was a silent drift bug, not an outright outage. Bumped to
the currentv26.0.- The Email Template Drafts "Start a new draft" dropdown had no label at all — a screen
reader had no way to tell what the<select>was for (WCAG 2 input-without-label), and sighted
users got no visible indication either. Added a real, visible<label for>instead of a
screen-reader-only one, since the latter wouldn't have helped sighted users at all.
1.6.0
Added
- Coupon → campaign attribution — a new
ordo_coupon_campaign_logtable (keyed by
coupon_id, populated byCouponGenerator::generate()'s new optionalcampaignIdparam from
context['campaign_id']) records which campaign, if any, generated a given coupon code, with a
newcoupon_campaign_namecolumn surfaced on the revenue/channel analytics report — see
docs/adr/0028. - A new, composable
customer_inactivecampaign trigger — unlike the existing, single
fixed-threshold win-back email (Cron\TagInactiveCustomers/SendWinBackEmails), this is a real
Flow-canvas trigger with its own per-triggerdaysfield, so a store can build several
differently-shaped win-back campaigns at different inactivity windows. Dispatched nightly by
Cron\DispatchCustomerInactiveCampaigns— seedocs/adr/0030. - Purchase funnel / drop-off report — a new daily, per-stage distinct-customer funnel
(product view → cart add → checkout start → completed order), scoped consistently to
registered customers across every stage so the drop-off percentages between stages stay
meaningful. Kept current byCron\CalculateFunnelMetrics— seedocs/adr/0031. - Cohort retention can now be narrowed by acquisition campaign — an optional
acquisition_campaign_idfilter onordo/cohortretention/indexrebuilds the whole collection
pipeline (not a post-hoc row filter) to only the customers whose first order is attributed to
that campaign, via the existingordo_campaign_attributiontable — seedocs/adr/0029.
Changed
- The
Promotionalconsent topic now defaults to opt-in, not opt-out — a customer with no
explicitordo_customer_consent_topicrow is no longer treated as consented for marketing
sends (win-back, abandoned cart, offer expiry, and any admin-built campaign send whose topic is
Promotionalor unset).AccountUpdatesis unchanged. This silently stops those sends for
every existing customer until an admin explicitly opts them back in via the GDPR/Consent
screen — seedocs/adr/0027.
Fixed
CampaignSaveProcessor/SegmentSaveProcessor/RfmCalculatornow wrap their multi-statement
save/rebuild sequences in a DB transaction — a failure partway through could previously leave
a campaign/segment partially saved, or the RFM score table empty/half-rebuilt.- Closed a DNS-rebinding gap in the RSS content-block fetcher's SSRF check — a feed hostname
is now resolved once, every candidate address validated, and the real connection pinned to that
validated address, instead of trusting a second, independent DNS lookup at request time. - A campaign still enabled for
order_placed/referral_convertedcould credit an order with
"converting" itself, every time, not just on rare timing —DispatchOrderPlacedCampaigns/
DispatchReferralConvertedCampaignspublished the triggering order's id into the dispatch
context fromsales_order_place_after, where a fresh order'sentity_idis genuinely
unpopulated for every normal checkout (the same trapRecordCampaignOutcome/
RecordTriggerOutcomewere already moved off of) —(int) nullsilently became0, so
CampaignOutcomeLogger::logSent()'s self-exclusion never matched a real order id and
markActed()could mark a row as converted by the very order whose own dispatch sent it. Both
observers moved tosales_order_save_after;ordo_campaign_outcome_lognow also records which
order's dispatch produced each send (trigger_order_id) as a second, independent guard in
markActed().
1.5.1
Bug-fix patch release, 2 commits since 1.5.0.
Fixed
- Segment edit page's "Add Tag" bulk action silently applied to nobody —
Controller\Adminhtml\Segment\BulkActionqueued the action in the single-tag shapeAddTagused before 1.5.0's tag-chip-editor refactor;AddTag::execute()has read atagsarray ever since, so every real "Add Tag" bulk action click since 1.5.0 queued and reported success without ever writing a tag. Verified end-to-end against a real database. - 25 MFTF test files still referenced the pre-1.5.0 single-tag field shape, explaining failures across several scheduled MFTF runs since 1.5.0 — brought back in sync with the real field name. No module behavior change.
- Two unrelated MFTF-only timing/action issues surfaced by the same runs (native
<select>fields filled instead of selected; a dynamically-shown field filled before waiting for it to appear).
Full detail: docs/CHANGELOG.md.
1.5.0
Security-review fixes, two architectural refactors from a full-repo /simplify pass, and per-topic consent granularity, shipped across 17 commits since 1.4.0.
Added
- Per-topic consent granularity — new
Model\ConsentTopic(Promotional, Account & Order Updates) and a second, orthogonal opt-out register, additive to the existing per-channel one. The foursend_*campaign actions gained an optionaltopicparam (defaults to Promotional), and the five existing reminder crons/senders were switched onto the new topic-aware check — a customer who opts out of promotions still gets their credit-limit alerts. Managed from a new "Topic preferences" card on the existing admin GDPR screen. Seedocs/adr/0026.
Changed
- Condition/action UI field metadata unified behind
getParamFields()— replaces three independently hand-maintained field lists (CampaignSaveProcessor,SegmentSaveProcessor, the campaign Flow canvas) that had drifted out of sync with each other. As a side effect, 9 condition/action types that silently had no dedicated canvas field before (clv_at_least,purchased_sku,purchased_category, the three percentile conditions,notify,nps_survey,add_product_recommendations) now render one. SegmentMemberResolver's 19-arm type switch replaced withConditionPooldispatch — each resolvable condition type now implementsresolveCustomerIds()on its own class; the RFM/reorder-cycle batch-snapshot cache moved onto the calculator classes themselves, so a multi-segment batch resolve still only queries the whole customer base once per calculator.- Deduplicated the
getEntityId()/getName()/isEnabled()boilerplate repeated across ~13 model classes into two shared traits.
Fixed
- IDOR on free-gift carts — an authenticated customer could pass an arbitrary
cartIdbelonging to an unrelated, orphaned guest quote and the ownership check no-opped; now holds every authenticated caller to a strict match, while genuinely anonymous (guest-checkout) callers are still waved through unconditionally. - Twilio webhook signature verification failed open when no Auth Token was configured yet —
Controller\Sms\Reply/StatusCallbacknow reject outright (403) before ever constructing the signature validator. - Push-subscription unregister had no ownership check — any caller could unregister any endpoint; now requires the caller's own resolved identity to match the subscription, like every sibling
Trackendpoint already does.
Full detail: docs/CHANGELOG.md.