tt
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Clientegm;
|
||||
use App\Clientegmdest;
|
||||
use App\Gm_product;
|
||||
use App\Http\Controllers\TestPaoController;
|
||||
use App\Models\WpPostMeta;
|
||||
use App\Newproduct;
|
||||
use App\Order;
|
||||
use App\Orderdetail;
|
||||
@@ -6054,12 +6055,18 @@ Route::get('/ordineclientegm/{id}', function ($id) {
|
||||
Route::get('/provapao', [TestPaoController::class, 'provapao']);
|
||||
|
||||
|
||||
Route::get('/aggiornapreorder/{idarticolo}', function ($idarticolo) {
|
||||
Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $postid) {
|
||||
$product = Product::where('sku', $idarticolo)->first();
|
||||
|
||||
if ($product) {
|
||||
dd($product);
|
||||
|
||||
$metadata = WpPostMeta::where('post_id', postid)->get();
|
||||
|
||||
if ($metadata) {
|
||||
dd($metadata);
|
||||
}
|
||||
|
||||
$aggiorna = false;
|
||||
|
||||
if ($aggiorna) {
|
||||
|
||||
Reference in New Issue
Block a user