You are here:  » Show date imported


Show date imported

Submitted by wilkins on Mon, 2017-10-16 11:06 in

Hi David

I cannot find this even though I know its been done. Is it still possible with latest script.
Regards

Brent

Submitted by support on Mon, 2017-10-16 17:42

Hello Brent,

Sure - to show the prices updated date / time (16/09A / Foundation templates) you can add the following code to the end of html/prices.php:

<?php
  $sql = "SELECT MAX(imported) AS updated FROM `".$config_databaseTablePrefix."feeds`";
  database_querySelect($sql,$rows);
  $updated = $rows[0]["updated"];
?>
<div class='row'>
  <div class='small-12 columns'>
    <p>Prices updated: <?php print date("Y-m-d H:i",$updated); ?></p>
  </div>
</div>

You can format the date/time how you like using the format in the call to PHP's date() function...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com