Miva Merchant 4 Module FAQs » Order Status (BROK_ORDERSTATUS)


{docurl}

Adding A Search Field to Order Status Page When Using Template Formatting

Is it possible to add a search field to the Order Status page when using template formatting? (2003/07/21)

Yes, there are tokens available to add this functionality. All of these must appear between the %beginform% and %endform% tokens in the main template.

The token to add the search box to the template is:

%searchbox% (displays 20 chars long) OR
%searchbox|xxx|% (where xxx is the length)

The "search" button is displayed with:

%searchbutton%

You can add the ability to search by date (or date range) with:
%search_date% (displays a checkbox option that will apply the search to a particular date)

%search_month1% (lower end of range; selection list for month)
%search_month2% (upper end of range)
%search_year1% (selection list for year)
%search_years2%
%search_day1% (selection list for day of month)
%search_day2%

So to add a search box to the template and provide the ability to search by a particular date range(if both are set to the same date it will search just that date) you could add the following to the main template, right below the %beginform% token:


<table>
<tr><td>
%searchbox% %searchbutton%
</td></tr>
<tr><td>
%search_date% Search dates: from %search_month1%/%search_day1%/%search_year1% to
%search_month2%/%search_day2%/%search_year2%
</td></tr>
</table>



Last update: 2003-07-30 01:27
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category