WARNING:
THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED; THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.
Scot Ranney • October 12, 2026
Order content is the little modal that pops up with the order link/tabs when viewing an order. The blue links at the top.
In order to have a wide modal or a tall modal you must set an initial size. Nick from miva dev support has this to say:
There's no wide or narrow setting. The order tab dialog loads your tab's content (Module_Order_Content) in an iframe that starts at 500 × 145 px. When the iframe finishes loading, the dialog measures the iframe page's scrollWidth and scrollHeight
Module_Order_Content
scrollWidth
scrollHeight
and resizes itself to match. The width is capped at the browser
window's width. Notes comes up wide because its content is wide. Most
module tabs have small forms, so they stay near 500 px. To force a wide modal, give your tab's content a fixed width or minimum width:
<div style="min-width: 900px;"> ... tab content ...</div><MvFUNCTIONRETURN VALUE = 1>
You can also put the CSS in Module_Order_Head instead of inline, for example #mytab_wrapper { min-width: 900px; }. Some other things to know:
Module_Order_Head
#mytab_wrapper { min-width: 900px; }
ordercontents module