This commit is contained in:
paoloar77
2024-09-03 12:05:34 +02:00
parent 5aa5f1254d
commit 6a7ab3ec86

View File

@@ -40,6 +40,7 @@ Route::get('/woocommerce/test', [WooCommerceController::class, 'index']);
| contains the "web" middleware group. Now create something great! | contains the "web" middleware group. Now create something great!
| |
*/ */
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Codexshaper\WooCommerce\Facades\Product; use Codexshaper\WooCommerce\Facades\Product;
@@ -2423,7 +2424,7 @@ Route::post('/updatecreate', function (Request $request) {
// $productLogger->addLog('', 'updatecreate: CHECK ORDINE... '); // $productLogger->addLog('', 'updatecreate: CHECK ORDINE... ');
try { try {
// $productLogger->addLog('', json_encode($request->all())); // $productLogger->addLog('', json_encode($request->all()));
} catch (Exception $e) { } catch (Exception $e) {
} }
@@ -2524,7 +2525,7 @@ Route::get('/riprendiordine', function () {
$prodotti = $line_items; $prodotti = $line_items;
foreach ($prodotti as $prodotto) { foreach ($prodotti as $prodotto) {
// $myexistorder = getOrderByIdInternet($myidInternet); // $myexistorder = getOrderByIdInternet($myidInternet);
if (true) { if (true) {
$orderdetail = new Orderdetail(); $orderdetail = new Orderdetail();
$orderdetail->IdInternet = $myidInternet; $orderdetail->IdInternet = $myidInternet;
@@ -6350,7 +6351,7 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
if ($action == 'search') { if ($action == 'search') {
// Logica di ricerca dell'articolo // Logica di ricerca dell'articolo
return loadArticleByIdArticle($id); return loadArticleByIdArticle($id);
if ($action == 'search_isbn') { } elseif ($action == 'search_isbn') {
// Logica di ricerca dell'articolo // Logica di ricerca dell'articolo
return loadArticleByISBN($id); return loadArticleByISBN($id);
} elseif ($action == 'updateArtFromGM') { } elseif ($action == 'updateArtFromGM') {