Skip to content

1.6.0

Choose a tag to compare

@michalper michalper released this 08 Nov 17:11
· 247 commits to main since this release
e8cc23c

Added

  • Coupon → campaign attribution — a new ordo_coupon_campaign_log table (keyed by
    coupon_id, populated by CouponGenerator::generate()'s new optional campaignId param from
    context['campaign_id']) records which campaign, if any, generated a given coupon code, with a
    new coupon_campaign_name column surfaced on the revenue/channel analytics report — see
    docs/adr/0028.
  • A new, composable customer_inactive campaign trigger — unlike the existing, single
    fixed-threshold win-back email (Cron\TagInactiveCustomers/SendWinBackEmails), this is a real
    Flow-canvas trigger with its own per-trigger days field, so a store can build several
    differently-shaped win-back campaigns at different inactivity windows. Dispatched nightly by
    Cron\DispatchCustomerInactiveCampaigns — see docs/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 by Cron\CalculateFunnelMetrics — see docs/adr/0031.
  • Cohort retention can now be narrowed by acquisition campaign — an optional
    acquisition_campaign_id filter on ordo/cohortretention/index rebuilds the whole collection
    pipeline (not a post-hoc row filter) to only the customers whose first order is attributed to
    that campaign, via the existing ordo_campaign_attribution table — see docs/adr/0029.

Changed

  • The Promotional consent topic now defaults to opt-in, not opt-out — a customer with no
    explicit ordo_customer_consent_topic row is no longer treated as consented for marketing
    sends (win-back, abandoned cart, offer expiry, and any admin-built campaign send whose topic is
    Promotional or unset). AccountUpdates is unchanged. This silently stops those sends for
    every existing customer until an admin explicitly opts them back in via the GDPR/Consent
    screen — see docs/adr/0027.

Fixed

  • CampaignSaveProcessor/SegmentSaveProcessor/RfmCalculator now 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_converted could credit an order with
    "converting" itself, every time, not just on rare timing
    — DispatchOrderPlacedCampaigns/
    DispatchReferralConvertedCampaigns published the triggering order's id into the dispatch
    context from sales_order_place_after, where a fresh order's entity_id is genuinely
    unpopulated for every normal checkout (the same trap RecordCampaignOutcome/
    RecordTriggerOutcome were already moved off of) — (int) null silently became 0, 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 to sales_order_save_after; ordo_campaign_outcome_log now also records which
    order's dispatch produced each send (trigger_order_id) as a second, independent guard in
    markActed().