Monday, May 18, 2009

Display a message pointing out the last keyword typed on failed results

In order to avoid users running the same keyword search over and over again you may want to display a feedback pointing to the last keyword used. Here is how you can display a more appropriate response to users when the result set returns an empty list:
File Location:..\includes\languages\english\advanced_search_result.php
Replace:
define('TEXT_NO_PRODUCTS', 'There is no product that matches the search criteria.');
With:
define('TEXT_NO_PRODUCTS', '<font size=2 face="Verdana" color="#000077">No products found matching </font><font font size=2 face="Verdana" color="#770000"><u>'.$_GET['keyword'].'</u></font><font size=2 face="Verdana" color="#000077"> search keywords</font>');

No comments:

Post a Comment