This commit is contained in:
paoloar77
2024-05-17 19:03:52 +02:00
parent 17f3d02c64
commit 4efadb137f

View File

@@ -6057,6 +6057,8 @@ Route::get('/provapao', [TestPaoController::class, 'provapao']);
Route::get('/aggiornapreorder/{idarticolo}', function ($idarticolo) {
$product = Product::where('sku', $idarticolo)->first();
if ($product) {
echo 'Prodotto: ' . $product->id . ' - ' . $product->name . '<br>';
$aggiorna = false;
@@ -6064,4 +6066,7 @@ Route::get('/aggiornapreorder/{idarticolo}', function ($idarticolo) {
if ($aggiorna) {
Product::update($product->id, $data);
}
} else {
echo "Il prodotto non esiste";
}
});