st
This commit is contained in:
@@ -336,7 +336,9 @@ function libriInPrevendita()
|
|||||||
|
|
||||||
$sku = $article->IdArticolo;
|
$sku = $article->IdArticolo;
|
||||||
|
|
||||||
if ($article->QtaDisponibile <= 0) {
|
$prodotto = Product::where('sku', $sku)->first();
|
||||||
|
|
||||||
|
if ($prodotto['stock_quantity'] <= 0) {
|
||||||
$colore = 'red';
|
$colore = 'red';
|
||||||
}else {
|
}else {
|
||||||
$colore = 'green';
|
$colore = 'green';
|
||||||
@@ -350,11 +352,10 @@ function libriInPrevendita()
|
|||||||
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
|
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
|
||||||
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
|
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
|
||||||
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' .$sep .
|
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' .$sep .
|
||||||
'[In Stock = <span style="color:'.$colore.'; font-weight: bold;">' . $article->stock . '</span>]' .$sep .
|
'[In Stock = <span style="color:'.$colore.'; font-weight: bold;">' . $prodotto['stock_quantity'] . '</span>]' .$sep .
|
||||||
|
|
||||||
'<a href="' . $article->permalink . '/apimacro/public/aggiornapreorder/'.$article->IdArticolo.'/1" target="_blank">Imposta in PreORDINE!</a>' . $sep ;
|
'<a href="' . $article->permalink . '/apimacro/public/aggiornapreorder/'.$article->IdArticolo.'/1" target="_blank">Imposta in PreORDINE!</a>' . $sep ;
|
||||||
|
|
||||||
$prodotto = Product::where('sku', $sku)->first();
|
|
||||||
if ($prodotto) {
|
if ($prodotto) {
|
||||||
|
|
||||||
if (isset($prodotto['_wpro_variable_is_preorder'])) {
|
if (isset($prodotto['_wpro_variable_is_preorder'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user