Submitted by tbbd2007 on Wed, 2008-03-12 11:59 in Price Tapestry
David,
Is there any way to have an e-mail sent to me when the 'no products found' message is invoked so that I can check why no products were displayed for that search.
Sure - you will find the following file on your site: html/noresults.php. To make it send you an email when this page is displayed, just add the following code to this file (it is empty except for a comment to begin with):
<?php if ($q) { mail("you@example.com","No Results Alert","No results for ".$q); } ?>
Hi Stephen,
Sure - you will find the following file on your site: html/noresults.php. To make it send you an email when this page is displayed, just add the following code to this file (it is empty except for a comment to begin with):
<?php
if ($q)
{
mail("you@example.com","No Results Alert","No results for ".$q);
}
?>
Cheers,
David.