Power Search |
Copyright © 2000, William Weiland |
Overview The purpose of powrsrch.mv is to allow a customer to search one or more fields which are allowed by the store owner. The store owner can choose any fields within the products.dbf structure to be available. |
|
Initial Setup Use the Merchant admin upload feature to upload the powrsrch.mv(c) module. Once uploaded, click the Add button to add it to the mall/domain. In admin, under your store, click on the link for Utilities Configuration Screen. Assign the module and Update it to install it in your store. Click the link for Power Search to enter the configuration settings. |
|
Configuration Settings For each field that you want to be selectable by the customer, enter a tag line (description) for that field, eg. NAME could read Product Name for its display tag. Blank tag line fields will not be listed as selectable search options. If you change the structure of your products database, you will need to uninstall Power Search from the store, then re-install it. That will create a new field list for you to enter tag lines. Each time you run the report under the admin:store:utilities you have the option of deleting the flat file log. This is advisable as the log will get too large to view. Since it is mainly to monitor trends, you need not even view the whole log. Entering to view the first 100 searches should give you an idea what people look for. Checking the box to delete will delete all existing searches from the log. If for some reason you want to keep all of the search log for later analysis, you should download the flat file log to your PC for import into a spreadsheet or database manager. Then delete the flat file. |
|
Editing Requirements (skip if using the OpenUI) If you are using the Miva Merchant User Interface (mmui) you will need to make some very simple edits to the core files. Be sure to do that with a text editor (NO WYSIWYG editors) such as Programmer's File Editor (PFE) so as not to damage the mv files. ALWAYS BACKUP your unmodified mv files in case you make a mistake. 1) In the mmui.mv file you insert the following non-asterisk lines in the MMUI_Search
function about 50 lines from the beginning of that function. You will see
</TABLE> and </FORM> tags followed by the line 2) Several lines below this location you will see the line: 3) Several lines further down in the MMUI_Search locate the lines
matching the lines marked with asterisks: 4) Several lines further down in the MMUI_Search locate the lines which
end the table row followed by the </MvWHILE> tag. 5) A few lines further down in the MMUI_Search, locate the following lines
I've denoted with asterisks here and insert the lines not asterisked: 6) Several lines further down you will see the end of the </MvWHILE> loop
along with a count increment (lines marked with asterisk). Place a </MvIF>
just after the counter: 7) In the same function, MMUI_Search, near the end of the function you will
see the forms for the Previous and Next buttons. A few lines above the
input for the submit of those buttons, you will see several hidden input
tags. Add the following to both forms: 8) In the same function, MMUI_Search, you will see the form for the Add
to Basket button. It looks like <MvIF EXPR = "{ MMUI_ProductLayout.d.adbutton }">
followed by the form tag. Right after that you will see several hidden inputs. Add
the following to both places where the adbutton form is located. 9) After you've installed this, you will probably want to get rid of the old
standard search. Simply go back up to the point where you inserted the two
lines which call the Power_Search_Prompt. Then above that, comment out the
form and table for the standard search which is directly above that point.
Then below the commented out original table and the line which calls the
Power_Search_Prompt, add the following line: |