Commit 6d04d03
UR-4386 Feat - Allow 100% discount coupons on memberships (no minimum-payment restriction) (#1354)
* UR-4386 Feat - Allow 100% discount coupons on memberships (Stripe delayed-start subscription + one-time free order)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* UR-4386 Fix - Activate 100% Stripe subscription on schedule creation; keep pending if creation fails
* UR-4386 Feat - Allow 100% coupon on PayPal subscription via future start_time (delayed start, plain REGULAR plan)
* UR-4386 Fix - Guard prepare_membership_data against null post_content (PHP warning line 275)
* UR-4386 Fix - Guard OrdersListTable membership filters against null post_content (PHP warning line 683)
* UR-4386 Fix - Guard Orders membership filter against null post_content (PHP warning line 357)
* UR-4386 Fix - Guard members list table membership filter against null post_content (PHP warning line 1119)
* UR-4386: fix payment success admin email — show $0.00 for 100% coupons (all gateways) and point Click Here to the URM member page
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: yoel limbu <87514350+y000yal@users.noreply.github.com>1 parent d0845c3 commit 6d04d03
14 files changed
Lines changed: 339 additions & 47 deletions
File tree
- assets/js/modules/membership/frontend
- includes
- admin/settings
- emails
- modules
- membership/includes
- Admin/Services
- Paypal
- Stripe
- payment-history
- Admin
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
355 | 360 | | |
356 | 361 | | |
357 | 362 | | |
| |||
1080 | 1085 | | |
1081 | 1086 | | |
1082 | 1087 | | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1083 | 1103 | | |
1084 | 1104 | | |
1085 | 1105 | | |
| |||
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
1119 | | - | |
| 1119 | + | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
392 | 399 | | |
393 | 400 | | |
394 | 401 | | |
395 | | - | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
1065 | 1071 | | |
1066 | 1072 | | |
1067 | 1073 | | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1073 | 1079 | | |
1074 | 1080 | | |
1075 | 1081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1330 | 1337 | | |
1331 | 1338 | | |
1332 | 1339 | | |
1333 | | - | |
1334 | 1340 | | |
1335 | 1341 | | |
1336 | 1342 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
446 | 451 | | |
447 | 452 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
453 | 457 | | |
454 | | - | |
455 | | - | |
456 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
457 | 462 | | |
458 | 463 | | |
459 | 464 | | |
| |||
598 | 603 | | |
599 | 604 | | |
600 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
601 | 632 | | |
602 | 633 | | |
603 | 634 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
417 | 424 | | |
418 | 425 | | |
419 | 426 | | |
| |||
749 | 756 | | |
750 | 757 | | |
751 | 758 | | |
| 759 | + | |
| 760 | + | |
752 | 761 | | |
753 | | - | |
| 762 | + | |
754 | 763 | | |
755 | 764 | | |
756 | 765 | | |
| |||
773 | 782 | | |
774 | 783 | | |
775 | 784 | | |
776 | | - | |
777 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
778 | 800 | | |
779 | 801 | | |
780 | 802 | | |
| |||
3102 | 3124 | | |
3103 | 3125 | | |
3104 | 3126 | | |
3105 | | - | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
3106 | 3130 | | |
3107 | 3131 | | |
| 3132 | + | |
3108 | 3133 | | |
3109 | 3134 | | |
3110 | 3135 | | |
| |||
3230 | 3255 | | |
3231 | 3256 | | |
3232 | 3257 | | |
3233 | | - | |
| 3258 | + | |
3234 | 3259 | | |
3235 | 3260 | | |
3236 | 3261 | | |
| |||
0 commit comments