You are here:  » Adding Product count and time excution based on search term

Support Forum



Adding Product count and time excution based on search term

Submitted by webie on Sat, 2008-02-16 12:49 in

Hi Dave,

Me agian sorry to pester you is there a way of displaying product count on search term I would like it similar to google has it like this

Results 1 - 10 of about 135,000 for mig welders. (0.21 seconds)

at present it looks like this 224 Results for mig welders

cheers

Darren

Submitted by support on Sun, 2008-02-17 10:28

Hi Darren,

At present you should have:

Product search results for Baumatic BR163A (showing 1 to 10 of 293)

You can of course change "showing" to "results" - the code for this is in search.php the following code on line 128:

      $banner["h2"] .= "(".translate("showing")." <strong>".$resultFrom."</strong> ".translate("to")." <strong>".$resultTo."</strong> ".translate("of")." <strong>".$resultCount."</strong>)";

To add the query timing to this, it will be necessary to move the code around quite substantially, which will be difficult to document through the forum. If you can email me your current search.php (reply to your reg code or forum registration email) and I will add the code for query timing for you...

Cheers,
David.

Submitted by webie on Sun, 2008-02-17 10:35

Hi Dave,

Many thanks i will do that today sorry for my last post we must have crossed as i posted it your answer displayed sorry for that.

Cheers

Darren

Submitted by support on Sun, 2008-02-17 13:19

Hi Darren,

I notice that your search.php is quite heavily modified, what i'll do instead is post the necessary timer code in your other thread...

Cheers,
David.