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
Trace: • Managing Content Pages in ProductCart v4 • Creating a dealer-only e-commerce store • Customer Account Area: built-in customer service • How to rename the "pcadmin" folder • Store Buttons • Search Engine Optimization and Store Design • Display Settings • Product Reviews • How to Add "Shop by Price" Links to your Navigation • Setting the number of search results through a link