Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    24
    Plugin Contributions
    0

    Default Advanced search - getting number of results

    Hi,

    I am trying to figure out (for stats purposes) how many results are returned by a search. I would therefore try and find out where I can hook in to log the returned results. Should be quite easy, yet I seem to be struggling with the files involved in the search/advanced search. Can anyone point me in the right direction?

    Thanks

    Christoph

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Advanced search - getting number of results

    The search results are display using the product-listing module.
    Thus the result-count is $listing_split->number_of_rows in /includes/modules/product_listing.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Advanced search - getting number of results

    Hi DrByte, thanks for that - I found I can also pick this up from

    /includes/templates/MYTEMPLATE/templates/tpl_modules_product_listing.php

    which allows me to keep the core files untouched and integrate this with the search_log mod. (see search_log thread)

    Thanks

    Christoph

 

 

Similar Threads

  1. Search/Advanced Search not returning results
    By scottfr in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 6 Apr 2011, 06:08 AM
  2. Search and Advanced search not returning results
    By paisore in forum General Questions
    Replies: 6
    Last Post: 4 Nov 2010, 03:43 PM
  3. Advanced Search Results
    By Ess4c in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Nov 2008, 04:58 AM
  4. Advanced Search... No results?
    By emilfalcon in forum General Questions
    Replies: 3
    Last Post: 2 Apr 2008, 06:59 PM
  5. Is there a way to have advanced search results open the results in a new window?
    By member in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2008, 08:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR