search (JS API)
search
Method Signature | SearchResult ultraCart.search(String catalogHost, String searchString, int itemsPerPage, int currentPage, opts); | |
|---|---|---|
Description | Mimics the search tool on the standard carts. This method provides a way to do product searching for your customers. The returned result may be used to create a results listing. Also see the Search Tool page for ways you can enhance this search. | |
Parameter | catalogHost - the server name of your store (many merchants have dozens of different urls) | |
Parameter | searchString - this will be what the customer types in. This string accepts booleans OR/AND to search for multiple strings) | |
Parameter | itemsPerPage - for record chunking. Set this to the number of records you wish to show per page. Subsequent calls can be made, incrementing the currentPage variable, to retrieve the remaining results. | \ |
Parameter | currentPage - for record chunking. | |
Parameter | opts - see XHR Issues and the Relay Script | |
Result |