Add Woo Manager email notification milestones with shared mail templates.
Deploy Ladill Woo Manager / deploy (push) Successful in 2m11s
Deploy Ladill Woo Manager / deploy (push) Successful in 2m11s
New order, store connected, Pro expiry, and past-due alerts use the Ladill notification layout with woo branding; expiry reminders dedupe per threshold like hosting. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Woo\WooProExpiryAlertService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class NotifyProExpiringCommand extends Command
|
||||
{
|
||||
protected $signature = 'woo:pro-expiry-alerts';
|
||||
|
||||
protected $description = 'Send Woo Manager Pro/Business expiry milestone emails';
|
||||
|
||||
public function handle(WooProExpiryAlertService $alerts): int
|
||||
{
|
||||
$sent = $alerts->checkAll();
|
||||
$this->info("Sent {$sent} pro expiry alert(s).");
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user