Announcement:Materials and articles for ProductCart 5 can be found at our brand new support center.

Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!

Setting the number of search results through a link

When you are linking to search results (e.g. to create a hardcoded search on a certain keyword, price range, etc.), you can easily set the number of products that will be shown on the search results page (pc/showSearchResults.asp), overriding the default value, which is set by defining the number of products to be shown per row, and the number of rows per page on the Settings > Store Settings > Display Settings page..

This is done by adding the “resultCnt” querystring to the link.

Examples:

  • This search returns 9 results per page. It does not specify the number of results, so it uses the default value.
    http://www.earlyimpact.com/demos/standard/pc/showsearchresults.asp?keyword=earrings

  • This search instead, specifies the number of results through the resultCnt querystring. It sets the number at 6 products per page.

    http://www.earlyimpact.com/demos/standard/pc/showsearchresults.asp?keyword=earrings&resultCnt=6

QR Code
QR Code Setting the number of search results through a link (generated for current page)