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