tt
This commit is contained in:
10
app/WpPostMeta.php
Normal file
10
app/WpPostMeta.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WpPostMeta extends Model
|
||||
{
|
||||
protected $table = 'wp_postmeta';
|
||||
}
|
||||
@@ -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