Miva Merchant 4 Module FAQs » Search Manager (BROK_SEARCH)
(NOTE: this feature can slow down the search process if you have many products in your store. In order to build the list of pages, the module obviously needs to determine how many pages of results there are by searching the entire database. If there are many products this can take awhile)
The module is capable of displaying a list of the pages of search results as links to the various pages (with the current page NOT being a link). It requires that you use the "Use template formatting" option (on the module's 'Options' tab).
The %paging% token can be used in the main template area to display an "index" to pages of results. For example, if there are 6 pages of results and your customer is currently on page 3 the %paging% token would be replaced with something like:
1 2 [3] 4 5 6
with each number being a "quick link" to that page.
There are three template areas at the very bottom of the template's configuration page. The template area labelled "templage for 'this page'" is the template used to replace the number of the page that the customer is currently on. The token %number% is replaced with the page number but you can also have the pages represented by letters by using the tokens %smallalpha% (replaced with a lower case letter, i.e. the pages would be lettered a b c d e etc.) or %largealpha% (replaced with upper case letter, i.e. A B C D). By default, this template has the text [%number%] in it and displays as in the above example.
The field labeled "template for 'other pages'" is used to display the characters for the other pages (i.e. those that the customer is not currently on and are linked to other pages). The same tokens can be used in this field (i.e. %number%,%smallalpha%, %largealpha%).
An example of use of this feature can be seen by simply adding the token %paging% to the top of the Main template area.
A more refined example:
Add
<table cellpadding="2"><tr>
<td>Pages:</td> %paging%
</tr></table><br>
to the main template area above the table which displays the results. and for the other "this page" area use:
<td>[%number%]</td>
And for the "other page" area use:
<td>%number%</td>
The third field for the %paging% feature is labelled 'row template'. This is used for displaying the list of pages in some other manner than a simple horizontal row (for example, in a "grid" 4 links across).
By default the row template (in the "Results Paging" section of the "template" tab) contains a single token %page|01|%. When the %paging% token is processed, it is done a "row" at a time with multiple copies of the "row template". The token %page|xx|% will be replaced by either the "template for 'this page'" or the "template for 'other pages'" depending on whether or not the current page is the "this page". Since the default "row template" contains only the single token %page|01|%, the %paging% token will simple be replaced with a string of copies of the "page" templates. For example, if your "template for 'this page'" is [%number%] and the "template for 'other pages'" is %number%, then the %paging% token would display something like:
1 2 3 [4] 5 (i.e. %number%%number%%number%[%number%]%number).
So, to display a "table" of page numbers, say 4 numbers to a row, you would put <table></table> tags around the %paging% token:
<table>
%paging%
</table>
Then change the "row template" to contain a row of the table:
<tr>
<td>%page|01|%</td>
<td>%page|02|%</td>
<td>%page|03|%</td>
<td>%page|04|%</td>
</tr>
If there are 8 products in the results (with the same tokens in the page templates as above), this will result in html something like:
<table>
<tr>
<td>1</td><td>2</td><td>3</td><td>[4]</td>
</tr>
<tr>
<td>5</td><td>6</td><td>7</td><td>8</td>
</tr>
</table>
{docurl}
Can I display PAGES LINKS for Search Results
I want to display paging links on the search results page.
(NOTE: this feature can slow down the search process if you have many products in your store. In order to build the list of pages, the module obviously needs to determine how many pages of results there are by searching the entire database. If there are many products this can take awhile)
The module is capable of displaying a list of the pages of search results as links to the various pages (with the current page NOT being a link). It requires that you use the "Use template formatting" option (on the module's 'Options' tab).
The %paging% token can be used in the main template area to display an "index" to pages of results. For example, if there are 6 pages of results and your customer is currently on page 3 the %paging% token would be replaced with something like:
1 2 [3] 4 5 6
with each number being a "quick link" to that page.
There are three template areas at the very bottom of the template's configuration page. The template area labelled "templage for 'this page'" is the template used to replace the number of the page that the customer is currently on. The token %number% is replaced with the page number but you can also have the pages represented by letters by using the tokens %smallalpha% (replaced with a lower case letter, i.e. the pages would be lettered a b c d e etc.) or %largealpha% (replaced with upper case letter, i.e. A B C D). By default, this template has the text [%number%] in it and displays as in the above example.
The field labeled "template for 'other pages'" is used to display the characters for the other pages (i.e. those that the customer is not currently on and are linked to other pages). The same tokens can be used in this field (i.e. %number%,%smallalpha%, %largealpha%).
An example of use of this feature can be seen by simply adding the token %paging% to the top of the Main template area.
A more refined example:
Add
<table cellpadding="2"><tr>
<td>Pages:</td> %paging%
</tr></table><br>
to the main template area above the table which displays the results. and for the other "this page" area use:
<td>[%number%]</td>
And for the "other page" area use:
<td>%number%</td>
The third field for the %paging% feature is labelled 'row template'. This is used for displaying the list of pages in some other manner than a simple horizontal row (for example, in a "grid" 4 links across).
By default the row template (in the "Results Paging" section of the "template" tab) contains a single token %page|01|%. When the %paging% token is processed, it is done a "row" at a time with multiple copies of the "row template". The token %page|xx|% will be replaced by either the "template for 'this page'" or the "template for 'other pages'" depending on whether or not the current page is the "this page". Since the default "row template" contains only the single token %page|01|%, the %paging% token will simple be replaced with a string of copies of the "page" templates. For example, if your "template for 'this page'" is [%number%] and the "template for 'other pages'" is %number%, then the %paging% token would display something like:
1 2 3 [4] 5 (i.e. %number%%number%%number%[%number%]%number).
So, to display a "table" of page numbers, say 4 numbers to a row, you would put <table></table> tags around the %paging% token:
<table>
%paging%
</table>
Then change the "row template" to contain a row of the table:
<tr>
<td>%page|01|%</td>
<td>%page|02|%</td>
<td>%page|03|%</td>
<td>%page|04|%</td>
</tr>
If there are 8 products in the results (with the same tokens in the page templates as above), this will result in html something like:
<table>
<tr>
<td>1</td><td>2</td><td>3</td><td>[4]</td>
</tr>
<tr>
<td>5</td><td>6</td><td>7</td><td>8</td>
</tr>
</table>
Last update: 2005-07-27 18:01
Author: Support
Revision: 1.0
You cannot comment on this entry
Records in this category
- Configuring a Search List to be Associated with ONLY One Field
- How to Log What Customers Search For
- Restricting a Static Search Form to a Single Category
- When Attempting to Rebuild my Databases, I get an error that the file can't be found
- The %begin_catrestrict....%end_catrestrict% token Displays the Category Code to the Customer. Won't that be Confusing?
- Restricting a Search to Particular Categories
- Displaying Category And Product Search Results Side-By-Side
- After Installing the Latest OpenUI Version, the Module Isn't Changing the Search Page Link in the Navigation Bar
- Malfunctioning Search Field Using %searchbox|xx|% and Search List Using %begin_searchlist%...%
- How to Insert a Product Quantity Box And Corresponding Add to Basket
- Adding a Static Search Form
- No results
- Searching additional fields...
- My products all have a $0.00 price and the price is added by one of my attributes (different price for each option). When searching by "price range" is there any way I can have the module search by the price of the attributes?
- I have the module configured but the search does not appear to be returning the correct search results. Any ideas?
- Can I keep a product from being included in the search?
- I would like to sort my products by their price. Especially used with the ability to search by price range (explained below) this would be handy. How can I do this?
- Is it possible to suppress the search form on the results page?
- Is it possible to restrict a search to a particular price range?
- Can I manually construct search links with the search friendly links from Copernicus including with additional product fields manager and price ranges?
- Is it possible to use search friendly links from Copernicus with Search Manager results including additional product fields manager?
- Is it possible to display the product links in the results without the "extra" variables in the URL?
- Is it possible to create an html drop-down that allows the user to determine the state of the AND flag?I've tried something like this, but it doesn't seem to send the correct state to the server:
- When I restrict a search to a particular category, it does not find products in sub-categories of that category. Why?
- I would like to sort my products by the order I have them set in admin. How can I do this?
- I know that you can search one particular category in a static search form, but how would I go about searching multiple categories?
- I am using Adam Denning's Additional Product Fields Manager module but the search isn't finding the data in the additional fields.
- I would like to make some checkboxes that essentially replace the search text box. in doing so, i would control the search terms. is there a way that i could make a text box that says "apple", and if they check it, and hit search, it will search my products for any that contain the word "apple", even if they don't type in any search terms themselves?
- When I use the search manager, is there any way to display the number of results, ie. "Items 1-20 of 257" or "114 products found"?
- I have a static search form. Is there any way to force the results to be sorted in a particular way?
- How do I keep the module from displaying "out-of-stock" products (I'm using the Merchant inventory feature to track inventory)?
- We would like to use your Additional Fields Manager to provide our customers with a set of select lists from which they can choose values to search for in each of the additional fields. For example we would have additional fields for:color size weight so they would select an item from three drop down select lists to choose a value to search for in the "color" field, for the "size" field, and the "weight" field. So they might search for something like:color="red"size="large"weight="4oz".
- Can I have a link that will display all products in a particular category which have a particular value in a certain field?
- I would like to conditionally display text on the search page. How can I do that?
- Right now if a value is stored in field 1 of product A, and field 2 of product B, both products A and B are returned. I?d like to configure it so that search list 1 searches only field 1, and search list 2 searches only field 2. Please let me know if there is any documentation about how I could associate each search list with only one field.
- Can I exclude products in certain categories from the search results?
- Can I display PAGES LINKS for Search Results














