chore: batch supporting UI, settings schema, templates, and docs updates

This commit is contained in:
Dwindi Ramadhana
2026-06-01 00:58:43 +07:00
parent 30f2fc2ea6
commit f3c4ee7124
20 changed files with 1149 additions and 54 deletions

View File

@@ -110,6 +110,49 @@ class EventRegistry
],
],
// ===== AFFILIATE EVENTS =====
'affiliate_application_received' => [
'id' => 'affiliate_application_received',
'label' => __('Affiliate Application Received', 'woonoow'),
'description' => __('When a customer applies to be an affiliate', 'woonoow'),
'category' => 'marketing',
'recipient_type' => 'staff',
'wc_email' => '',
'enabled' => true,
'variables' => [
'{affiliate_name}' => __('Affiliate Name', 'woonoow'),
'{customer_email}' => __('Customer Email', 'woonoow'),
],
],
'affiliate_application_approved' => [
'id' => 'affiliate_application_approved',
'label' => __('Affiliate Application Approved', 'woonoow'),
'description' => __('When an affiliate application is approved', 'woonoow'),
'category' => 'marketing',
'recipient_type' => 'customer',
'wc_email' => '',
'enabled' => true,
'variables' => [
'{affiliate_name}' => __('Affiliate Name', 'woonoow'),
'{referral_code}' => __('Referral Code', 'woonoow'),
],
],
'affiliate_new_referral' => [
'id' => 'affiliate_new_referral',
'label' => __('New Affiliate Referral', 'woonoow'),
'description' => __('When an affiliate generates a new referral', 'woonoow'),
'category' => 'marketing',
'recipient_type' => 'customer',
'wc_email' => '',
'enabled' => true,
'variables' => [
'{affiliate_name}' => __('Affiliate Name', 'woonoow'),
'{commission_amount}' => __('Commission Amount', 'woonoow'),
'{currency}' => __('Currency', 'woonoow'),
'{order_number}' => __('Order Number', 'woonoow'),
],
],
// ===== ORDER INITIATION =====
'order_placed' => [
'id' => 'order_placed',