aa
This commit is contained in:
@@ -1374,6 +1374,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
|||||||
$datepubblstr = $datepubbl->format('d/m/Y');
|
$datepubblstr = $datepubbl->format('d/m/Y');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$productLogger->addLog('server_issues', 'DataPubb...' + $datepubblstr);
|
||||||
|
|
||||||
$data1 = [
|
$data1 = [
|
||||||
|
|
||||||
'regular_price' => $article->PrezzoIvato,
|
'regular_price' => $article->PrezzoIvato,
|
||||||
@@ -1523,6 +1525,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$productLogger->addLog('server_issues', 'crea prodotto');
|
||||||
|
|
||||||
echo "... crea prodotto..." . $data;
|
echo "... crea prodotto..." . $data;
|
||||||
|
|
||||||
$product = Product::create($data);
|
$product = Product::create($data);
|
||||||
@@ -2301,6 +2305,7 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($preorder) {
|
if ($preorder) {
|
||||||
|
$productLogger->addLog('server_issues', 'Preordine...');
|
||||||
// Controlla se è in preordine
|
// Controlla se è in preordine
|
||||||
$inprevendita = isArticleInPrevendita($article->IdArticolo, true);
|
$inprevendita = isArticleInPrevendita($article->IdArticolo, true);
|
||||||
if ($inprevendita) {
|
if ($inprevendita) {
|
||||||
@@ -2314,6 +2319,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$productLogger->addLog('server_issues', 'FINE');
|
||||||
|
|
||||||
echo " ...FINE !";
|
echo " ...FINE !";
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$productLogger->addLog('server_issues', $article->IdArticolo . ' - ' . $article->Titolo . "\n" . $e->getMessage() . "\n");
|
$productLogger->addLog('server_issues', $article->IdArticolo . ' - ' . $article->Titolo . "\n" . $e->getMessage() . "\n");
|
||||||
@@ -2457,13 +2464,12 @@ function updateArticoloFromGM($idarticolo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($article) {
|
if ($article) {
|
||||||
$str = "Articolo: ";
|
$str = "Articolo: <br>";
|
||||||
$str .= getarraystr($article);
|
$str .= getarraystr($article);
|
||||||
|
|
||||||
$str .= "setProductFromGM: ";
|
$str .= "setProductFromGM: <br>";
|
||||||
setProductFromGM($article, false, $productLogger);
|
setProductFromGM($article, false, $productLogger);
|
||||||
|
|
||||||
|
|
||||||
$str .= $productLogger->concatenateLogs();
|
$str .= $productLogger->concatenateLogs();
|
||||||
|
|
||||||
return $str;
|
return $str;
|
||||||
|
|||||||
Reference in New Issue
Block a user