Repository navigation
Commit 8bea997
CampTix: store an unknown attendee on the buyer's row as unknown (#2149)
* CampTix: store an unknown attendee on the buyer's row as unknown
Follow-up to #2117. On a direct link to the ticket form, the "I don't know
who will use this ticket yet" checkbox also shows on the buyer's own row.
Ticking it there stored a half-unknown ticket: the stub name (only filled
in when the name was empty), the buyer's real pre-filled email, and the
buyer's username. Neither check on the public list catches that, so the
ticket was listed as "Unknown Attendee".
- add_unknown_attendee_info_stubs() always uses the stub name and the
placeholder email when the box is ticked. The form only hides the
fields, so it still submits whatever was pre-filled.
- Row 1 gets the [[ unconfirmed ]] username when the box is ticked, so the
ticket can be claimed like any other unknown ticket. The buyer's
username is kept in tix_buyer_username, and
get_abandoned_draft_attendee_ids() checks it too, so the buyer isn't
held up by their own abandoned drafts.
- A new camptix_checkout_receipt_email filter lets Require Login send the
receipt to the logged-in buyer when it would go to the placeholder.
See #2114
* CampTix: send the claim link on a one-ticket order for an unknown attendee
Multiple purchases send each unknown attendee's ticket e-mail to the
buyer, with the claim link to forward. A one-ticket order only got the
receipt, which links to the buyer's own order page, so the buyer had no
claim link to pass on.
Adds a camptix_email_single_purchase_attendee_ticket filter after the
single-purchase receipt, and Require Login uses it to send the existing
unknown-attendee e-mail when the order's only ticket is unknown.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Boro Sitnikovski <buritomath@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 7e4924f commit 8bea997
3 files changed
Lines changed: 468 additions & 17 deletions
File tree
- public_html/wp-content/plugins/camptix
- addons
- tests/addons
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
337 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
| |||
344 | 348 | | |
345 | 349 | | |
346 | 350 | | |
347 | | - | |
348 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
349 | 359 | | |
350 | 360 | | |
351 | 361 | | |
| |||
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
364 | 378 | | |
365 | 379 | | |
366 | 380 | | |
| |||
595 | 609 | | |
596 | 610 | | |
597 | 611 | | |
598 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
599 | 615 | | |
600 | 616 | | |
601 | 617 | | |
602 | 618 | | |
603 | 619 | | |
604 | 620 | | |
605 | | - | |
606 | | - | |
607 | 621 | | |
608 | | - | |
609 | | - | |
610 | | - | |
| 622 | + | |
| 623 | + | |
611 | 624 | | |
612 | | - | |
613 | | - | |
614 | | - | |
| 625 | + | |
| 626 | + | |
615 | 627 | | |
616 | | - | |
617 | | - | |
618 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
619 | 642 | | |
620 | 643 | | |
621 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
622 | 665 | | |
623 | 666 | | |
624 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6385 | 6385 | | |
6386 | 6386 | | |
6387 | 6387 | | |
| 6388 | + | |
| 6389 | + | |
| 6390 | + | |
| 6391 | + | |
| 6392 | + | |
| 6393 | + | |
| 6394 | + | |
| 6395 | + | |
6388 | 6396 | | |
6389 | 6397 | | |
6390 | 6398 | | |
| |||
6529 | 6537 | | |
6530 | 6538 | | |
6531 | 6539 | | |
6532 | | - | |
| 6540 | + | |
| 6541 | + | |
| 6542 | + | |
6533 | 6543 | | |
6534 | 6544 | | |
6535 | 6545 | | |
| |||
6559 | 6569 | | |
6560 | 6570 | | |
6561 | 6571 | | |
| 6572 | + | |
6562 | 6573 | | |
6563 | 6574 | | |
6564 | 6575 | | |
6565 | 6576 | | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
6566 | 6581 | | |
6567 | 6582 | | |
6568 | 6583 | | |
| |||
7412 | 7427 | | |
7413 | 7428 | | |
7414 | 7429 | | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
7415 | 7440 | | |
7416 | 7441 | | |
7417 | 7442 | | |
| |||
0 commit comments