You are here:  » Search


Search

Submitted by Tobix on Sun, 2020-01-12 14:20 in

How do I enter in the search string "120,000 products on the site" This data must update automatically.

Submitted by support on Mon, 2020-01-13 09:28

Hi Tobix,

Here's a PHP section to show that text as a paragraph, for example to add to your home page;

<?php
  $sql 
"SELECT count(*) as numProducts FROM `".$config_databaseTablePrefix."products`";
  
database_querySelect($sql,$rows);
  
$numProducts $rows[0]["numProducts"];
  print 
"<p>".number_format($numProducts)." products on the site</p>";
?>

Cheers,
David.
--
PriceTapestry.com

Submitted by Tobix on Mon, 2020-01-13 21:09

this code works perfectly! :)