test
This commit is contained in:
@@ -6058,6 +6058,9 @@ Route::get('/ordineclientegm/{id}', function ($id) {
|
||||
|
||||
Route::get('/provapao', [TestPaoController::class, 'provapao']);
|
||||
|
||||
function showarray($array) {
|
||||
json_encode($array, JSON_PRETTY_PRINT);
|
||||
};
|
||||
|
||||
Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $postid) {
|
||||
try {
|
||||
@@ -6072,12 +6075,12 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
|
||||
$attributes = $product['meta_data'];
|
||||
|
||||
echo "Attributi:";
|
||||
print_r($attributes);
|
||||
showarray($attributes);
|
||||
|
||||
echo "Variazioni:";
|
||||
|
||||
$variations = Variation::all($product_id);
|
||||
print_r($variations);
|
||||
showarray($variations);
|
||||
|
||||
} else {
|
||||
echo "Il prodotto non esiste";
|
||||
|
||||
Reference in New Issue
Block a user