aa
This commit is contained in:
@@ -358,6 +358,10 @@ function libriInPrevendita()
|
||||
$prodotto = Product::where('sku', $sku)->first();
|
||||
|
||||
$qtyinstock = intval($prodotto['stock_quantity']);
|
||||
$prezzo = $prodotto['sale_price'];
|
||||
if (!$prezzo) {
|
||||
$prezzo = $prodotto['price'];
|
||||
}
|
||||
|
||||
if ($qtyinstock <= 0) {
|
||||
$colore = 'red';
|
||||
@@ -373,6 +377,7 @@ function libriInPrevendita()
|
||||
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
|
||||
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
|
||||
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' . $sep .
|
||||
' [€ ' .$prezzo . $sep . ' ]' .
|
||||
'[In Stock = <span style="color:' . $colore . '; font-weight: bold;">' . $qtyinstock . '</span>]' . $sep;
|
||||
|
||||
if ($qtyinstock < 0) {
|
||||
|
||||
Reference in New Issue
Block a user