| @@ -58,9 +58,12 @@ | ||
| 58 | 58 | * Order Refunded -> fluent_cart/order_fully_refunded (customer + admin) |
| 59 | 59 | * Order Shipping Status Changed => fluent_cart/shipping_status_changed (customer + admin) |
| 60 | 60 | * Reminder Events: |
| 61 | 61 | * - fluent_cart/renewal_reminder_due |
| 62 | - * - fluent_cart/renewal_reminder_overdue | |
| 62 | + * - fluent_cart/renewal_reminder_overdue (manual/on-demand payment reminder) | |
| 63 | + * - fluent_cart/renewal_overdue_first (scheduled, first overdue stage) | |
| 64 | + * - fluent_cart/renewal_overdue_followup (scheduled, intermediate overdue stages) | |
| 65 | + * - fluent_cart/renewal_overdue_final (scheduled, last overdue stage) | |
| 63 | 66 | * - fluent_cart/subscription_renewal_reminder |
| 64 | 67 | * - fluent_cart/subscription_trial_end_reminder |
| 65 | 68 | */ |
| 66 | 69 | |
| @@ -138,8 +141,43 @@ | ||
| 138 | 141 | 'email_body' => '', |
| 139 | 142 | 'attach_pdf_template' => '', |
| 140 | 143 | ] |
| 141 | 144 | ], |
| 145 | + 'subscription_renewal_failed_customer' => [ | |
| 146 | + 'event' => 'subscription_renewal_failed', | |
| 147 | + 'group' => 'subscription', | |
| 148 | + 'group_label' => __('Subscription Actions', 'fluent-cart'), | |
| 149 | + 'title' => __('Notify customer when an automatic renewal charge fails', 'fluent-cart'), | |
| 150 | + 'description' => __('This email will be sent to the customer when their saved payment method could not be charged for a subscription renewal.', 'fluent-cart'), | |
| 151 | + 'recipient' => 'customer', | |
| 152 | + 'smartcode_groups' => [], | |
| 153 | + 'template_path' => 'subscription.renewal_failed.customer', | |
| 154 | + 'is_async' => false, | |
| 155 | + 'settings' => [ | |
| 156 | + 'active' => 'yes', | |
| 157 | + 'subject' => __('Automatic Payment Failed for Renewal #{{order.invoice_no}}', 'fluent-cart'), | |
| 158 | + 'is_default_body' => 'yes', | |
| 159 | + 'email_body' => '', | |
| 160 | + ] | |
| 161 | + ], | |
| 162 | + 'subscription_renewal_failed_admin' => [ | |
| 163 | + 'event' => 'subscription_renewal_failed', | |
| 164 | + 'group' => 'subscription', | |
| 165 | + 'group_label' => __('Subscription Actions', 'fluent-cart'), | |
| 166 | + 'title' => __('Notify admin when an automatic renewal charge fails', 'fluent-cart'), | |
| 167 | + 'description' => __('This email will be sent to the admin when a saved payment method could not be charged for a subscription renewal.', 'fluent-cart'), | |
| 168 | + 'recipient' => 'admin', | |
| 169 | + 'smartcode_groups' => [], | |
| 170 | + 'template_path' => 'subscription.renewal_failed.admin', | |
| 171 | + 'pre_header' => __('An automatic subscription renewal charge failed. Review the order in the FluentCart Dashboard.', 'fluent-cart'), | |
| 172 | + 'is_async' => false, | |
| 173 | + 'settings' => [ | |
| 174 | + 'active' => 'no', | |
| 175 | + 'subject' => __('Automatic Charge Failed for Renewal #{{order.invoice_no}}', 'fluent-cart'), | |
| 176 | + 'is_default_body' => 'yes', | |
| 177 | + 'email_body' => '', | |
| 178 | + ] | |
| 179 | + ], | |
| 142 | 180 | 'subscription_canceled_customer' => [ |
| 143 | 181 | 'event' => 'subscription_canceled', |
| 144 | 182 | 'group' => 'subscription', |
| 145 | 183 | 'group_label' => __('Subscription Actions', 'fluent-cart'), |
| @@ -507,8 +545,59 @@ | ||
| 507 | 545 | 'is_async' => false, |
| 508 | 546 | 'settings' => [ |
| 509 | 547 | 'active' => 'yes', |
| 510 | 548 | 'subject' => __('Upcoming Renewal Reminder from {{settings.store_name}}', 'fluent-cart'), |
| 549 | + 'is_default_body' => 'yes', | |
| 550 | + 'email_body' => '', | |
| 551 | + ] | |
| 552 | + ], | |
| 553 | + 'renewal_overdue_first_customer' => [ | |
| 554 | + 'event' => 'renewal_overdue_first', | |
| 555 | + 'group' => 'scheduler', | |
| 556 | + 'group_label' => __('Scheduler / Reminder Actions', 'fluent-cart'), | |
| 557 | + 'title' => __('First overdue renewal reminder to customer', 'fluent-cart'), | |
| 558 | + 'description' => __('This email will be sent at the first overdue reminder day after a renewal due date while the payment is still pending.', 'fluent-cart'), | |
| 559 | + 'recipient' => 'customer', | |
| 560 | + 'smartcode_groups' => [], | |
| 561 | + 'template_path' => 'order.reminder.renewal_overdue.first.customer', | |
| 562 | + 'is_async' => false, | |
| 563 | + 'settings' => [ | |
| 564 | + 'active' => 'yes', | |
| 565 | + 'subject' => __('Payment Reminder for Renewal #{{order.order_ref}}', 'fluent-cart'), | |
| 566 | + 'is_default_body' => 'yes', | |
| 567 | + 'email_body' => '', | |
| 568 | + ] | |
| 569 | + ], | |
| 570 | + 'renewal_overdue_followup_customer' => [ | |
| 571 | + 'event' => 'renewal_overdue_followup', | |
| 572 | + 'group' => 'scheduler', | |
| 573 | + 'group_label' => __('Scheduler / Reminder Actions', 'fluent-cart'), | |
| 574 | + 'title' => __('Follow-up overdue renewal reminder to customer', 'fluent-cart'), | |
| 575 | + 'description' => __('This email will be sent at the intermediate overdue reminder days while the renewal payment remains pending.', 'fluent-cart'), | |
| 576 | + 'recipient' => 'customer', | |
| 577 | + 'smartcode_groups' => [], | |
| 578 | + 'template_path' => 'order.reminder.renewal_overdue.followup.customer', | |
| 579 | + 'is_async' => false, | |
| 580 | + 'settings' => [ | |
| 581 | + 'active' => 'yes', | |
| 582 | + 'subject' => __('Payment Overdue for Renewal #{{order.order_ref}}', 'fluent-cart'), | |
| 583 | + 'is_default_body' => 'yes', | |
| 584 | + 'email_body' => '', | |
| 585 | + ] | |
| 586 | + ], | |
| 587 | + 'renewal_overdue_final_customer' => [ | |
| 588 | + 'event' => 'renewal_overdue_final', | |
| 589 | + 'group' => 'scheduler', | |
| 590 | + 'group_label' => __('Scheduler / Reminder Actions', 'fluent-cart'), | |
| 591 | + 'title' => __('Final overdue renewal notice to customer', 'fluent-cart'), | |
| 592 | + 'description' => __('This email will be sent at the last configured overdue reminder day while the renewal payment is still pending.', 'fluent-cart'), | |
| 593 | + 'recipient' => 'customer', | |
| 594 | + 'smartcode_groups' => [], | |
| 595 | + 'template_path' => 'order.reminder.renewal_overdue.final.customer', | |
| 596 | + 'is_async' => false, | |
| 597 | + 'settings' => [ | |
| 598 | + 'active' => 'yes', | |
| 599 | + 'subject' => __('Final Notice: Payment Overdue for Renewal #{{order.order_ref}}', 'fluent-cart'), | |
| 511 | 600 | 'is_default_body' => 'yes', |
| 512 | 601 | 'email_body' => '', |
| 513 | 602 | ] |
| 514 | 603 | ], |