This commit is contained in:
paoloar77
2024-05-14 17:54:41 +02:00
parent 0ce8a96097
commit dcf29f114b
6 changed files with 81 additions and 66 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Console\Commands;
use App\Mylog;
use App\Order as AppOrder;
use Codexshaper\WooCommerce\Facades\Order;
use Illuminate\Console\Command;
@@ -90,10 +91,9 @@ class OrderUpdateGm extends Command
}
}
// get the directory actual name and put in the log file
$title = '*** SITO DI PRODUZIONE *** ';
// get the directory actual name and put in the log file
$log = $title . ' Ordini aggiornati' . "\n";
$log = ' Ordini aggiornati' . "\n";
// check if there are orders to log
if($orderupdated > 0) {
@@ -101,7 +101,7 @@ class OrderUpdateGm extends Command
Mail::raw($log, function ($message, $orderupdated) {
$message->to("log@fioredellavita.it");
//$message->bcc('');
$message->subject("Ordini Aggiornati su GM:" . $orderupdated);
$message->subject(Mylog::getSubjectEmail("Ordini Aggiornati su GM:" . $orderupdated));
});
}