aa
This commit is contained in:
@@ -39,7 +39,10 @@
|
||||
<input type="text" id="article_id" name="id" value="21569"/>
|
||||
<br>
|
||||
<button type="button" data-action="search">Cerca Articolo</button>
|
||||
<button type="button" data-action="checkPrevendita">E' in PreVendita?</button><br>
|
||||
<button type="button" data-action="checkPrevendita">E' in PreVendita?</button>
|
||||
<button type="button" data-action="setPreOrder">Impostalo in PreVendita!</button>
|
||||
<br><br>
|
||||
|
||||
<button type="button" data-action="inprevendita">Libri in Prevendita</button>
|
||||
</form>
|
||||
<div id="result"></div>
|
||||
|
||||
@@ -6156,6 +6156,8 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
|
||||
} elseif ($action == 'inprevendita') {
|
||||
return libriInPrevendita();
|
||||
|
||||
} elseif ($action == 'setPreOrder') {
|
||||
setPreOrder($id, true, true);
|
||||
} elseif ($action == 'checkPrevendita') {
|
||||
// Logica per verificare se l'articolo è in preordine
|
||||
$inprevendita = isArticleInPrevendita($id);
|
||||
|
||||
Reference in New Issue
Block a user