Hello,
I have writen a short code that gives me an idea of how much goods i have in stock.
here is the code i used with zen cart v1.5.1
Sinse i moved to 1.5.4 and coppied the code to admin/index.php the result is 0,00 (no value returned)PHP Code:<?php
$all_products_sumquery_raw = mysql_query("
SELECT SUM(products_quantity * products_price_sorter) AS grand_total
FROM products
WHERE products_quantity > '0'
");
$test1 = mysql_fetch_array($all_products_sumquery_raw);
echo '<h2>Total value: <span class="totalUred">'.number_format($test1[0], 2, ',', ' ').'</span>$.</h2>';
?>
Does somebody knows what change must be done?
Best regards.


Reply With Quote
.

