Update donor context if order assigned

Created on 4 July 2025, 3 days ago

Problem/Motivation

If an order is anonymous, we make the order the donor context. By default commerce assigns users to orders at the end of checkout.

Proposed resolution

Subscribe to the orderassign event and update existing donors when an order is assigned.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jonathanshaw
  • 🇬🇧United Kingdom jonathanshaw Stroud, UK
  • 🇬🇧United Kingdom adamps

    Good point. This seems quite important to me in general. I can see it's less important specifically for a site where the orders are almost all placed by authenticated users.

  • 🇬🇧United Kingdom jonathanshaw Stroud, UK

    A related wrinkle is that sites will likely want to link anonymous checkout declarations with donor by order email even if the order is never assigned.

    The "related contexts" stuff could help with that in theory but it's a bit heavyweight.

Production build 0.71.5 2024