Express Order
Copyright © 1999, William Weiland
Overview
Express.mv permits batch entry of product codes for addition to the shopping basket. Note: Since you are only entering product code and quantity, you cannot use express.mv for products which contain attributes as it is currently written.
Initial Setup
1) FTP the express.mv to your Merchant modules/ui/ directory (lower case spelling). Do NOT use the file upload utility within Merchant for this file; you must FTP.
2) Install it to your mall with a path of modules/ui/express.mv
3) Click on the image to the left of Stores
3) Click on the image to the left of your store name
4) Click on the link to Utilities
5) Check the box to the left of Express Order
6) Click on the Update button
7) Click on the tab at the top for Express Order
8) Enter the configuration settings
Configuration Settings

The prompt and prompt image URL are used in the prompt to display the Express Order form if you are using the OpenUI

The default column headings are Product Code and Quantity. You can change those labels.

You can add a header and footer to the screen which contains the Express Order form.


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)You can put a button on your nav bar, category column, or the store front description area for express ordering. Here is the code I inserted in the mmui.mv MMUI_Begin_Screen function just above the last </TABLE> tag in that function.
<MvDO FILE="{g.Module_Root$'modules/ui/express.mv'}" NAME = "l.showexpressbutton" VALUE = "{ Express_Open_Store() }">
<FORM METHOD = "post" ACTION = "&[ g.sessionurl ]">
<TR><TD>
<INPUT TYPE = "hidden" NAME = "Store_Code" VALUE = "&[ Stores.d.code:entities ]">
<INPUT TYPE = "hidden" NAME = "Screen" VALUE = "EXOR">
<MvIF EXPR = "{Express.d.imageurl}">
<INPUT TYPE = "image" ALT = "&[Express.d.prompt:entities]" SRC = "&[Express.d.imageurl:entities]" BORDER = 0>
<MvELSE>
<INPUT TYPE = "submit" VALUE = "&[Express.d.prompt:entities]">
</MvIF>
</TD></TR>
</FORM>
<MvDO FILE="{g.Module_Root$'modules/ui/express.mv'}" NAME = "l.showexpressbutton" VALUE = "{ Express_Close_Store() }">

2) In the mmui.mv file locate the UIModule_Dispatch function. Add the following code in that function just as the other screen types already there. Put this code in the latter half of the function, not near the beginning of the UIModule_Dispatch function.
<MvIF EXPR = "{ g.Screen EQ 'EXOR'}">
<MvDO FILE="express.mv" NAME = "l.ok" VALUE = "{ MMUI_Express_Order() }">
</MvIF>