This commit is contained in:
paoloar77
2024-05-21 00:33:50 +02:00
parent 98c23ed2c6
commit 4e3184c0f1
3 changed files with 32 additions and 69 deletions

View File

@@ -6222,9 +6222,14 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
if ($action == 'search') {
// Logica di ricerca dell'articolo
return loadArticleByIdArticle($id);
} elseif ($action == 'checkPreOrder') {
} elseif ($action == 'checkPrevendita') {
// Logica per verificare se l'articolo è in preordine
return "Verifica preordine per l'articolo con ID: " . $id;
$inprevendita = isArticleInPrevendita($id);
if ($inprevendita) {
return "L'articolo è in prevendita";
} else {
return "---";
}
} else {
return "Azione non supportata";
}