How to set up an order button

### Index Up << >>

## How to set up an order button

MiniVend can order via form submission as well. This allows you to order a product (or group of products) via a form button. In its simplest form, it is:

        <FORM ACTION="[process-target]" METHOD=POST>
        <INPUT TYPE=hidden NAME=mv_todo ACTION=refresh>
        <INPUT TYPE=hidden NAME=mv_order_item VALUE="00-0011">
        <INPUT TYPE=submit VALUE="Order the Mona Lisa">
        </FORM>

The default quantity is one. An initial quantity may be set by the user by adding an mv_order_quantity variable:

         Number to order:<INPUT TYPE=text NAME=mv_order_quantity VALUE="1">

You can order multiple items by stacking the variables:

        <FORM ACTION="[process-target]" METHOD=POST>
        <INPUT TYPE=hidden NAME=mv_todo ACTION=refresh>
        <INPUT TYPE=hidden NAME=mv_order_item VALUE="00-0011">
        <INPUT TYPE=hidden NAME=mv_order_item VALUE="00-0011a">
        <INPUT TYPE=submit VALUE="Order the Mona Lisa with frame">
        </FORM>

Initial size or color may be set as well, provided UseModifier is set up properly:

        <INPUT TYPE=hidden NAME=mv_order_size VALUE="L">

If the order is coming from a generated flypage, loop list, or search results page, you can get a canned select box from the `[item-accessories size]` or `[item-accessories size]` tag. See Item Attributes.

### Index Up << >>