You are here:  » No results found e-mail

Support Forum



No results found e-mail

Submitted by tbbd2007 on Wed, 2008-03-12 11:59 in

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.

Kind regards

Stephen
Online Shopping For
The Big Business Directory

Submitted by support on Wed, 2008-03-12 12:04

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.