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