Perpetual Basket Contents Display
Copyright © 1999, William Weiland
Overview
Displays the order total currently in each customer's basket as they shop within a Miva Merchant 2.x or 3.x store.
Initial Setup
Use the Merchant admin upload feature to upload the baskstat.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.


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.

Locate the function MMUI_Begin_Screen in the mmui.mv file. The line begins with <MvFUNCTION NAME = "MMUI_Begin_Screen". Scroll down several lines to the line that reads:
<MIVA STANDARDOUTPUTLEVEL = "text, html"><MvEVAL EXPR = "{ MMUI_Store.d.ctgy_head }"> <MIVA STANDARDOUTPUTLEVEL = "text, html, compresswhitespace">
On the line immediately preceding that line, enter the following line:
<TABLE border=1 cellpadding=2 cellspacing=2>
<TR><TD BGCOLOR="#ffd3ff" NOWRAP>
<MvDO FILE="{g.Module_Root$'modules/util/baskstat.mv'}" NAME="l.currentbasket" VALUE="{MMUI_BasketStatus(g.session_id)}">
<FONT size="-1"><MvEVAL EXPR = "{l.currentbasket}"></FONT>
</TD></TR>
</TABLE><BR><BR>
Note: You can change the table color and fonts in this code.

Another location is also in the MMUI_Begin_Screen function just below the last <TD tag and before the </MvIF> in that function. * lines below are in the function with the 11 lines between added to display the basket.
*<TD ALIGN = "left" VALIGN = "top" WIDTH = "80%">
<TABLE border=0 width="100%">
<TR><TD align="right" width="70%"> </TD><TD align="left" width="30%">
<MvDO FILE="{g.Module_Root$'modules/util/baskstat.mv'}" NAME="l.currentbasket" VALUE="{MMUI_BasketStatus(g.session_id)}">
<MvIF EXPR = "{l.currentbasket}">
<TABLE border="&[BaskStat.d.border:entities]" cellpadding="&[BaskStat.d.border:entities]" cellspacing="&[BaskStat.d.border:entities]">
<TR><TD BGCOLOR="&[BaskStat.d.table_bg:entities]" NOWRAP>
<FONT size="&[BaskStat.d.tablefsize:entities]" face="&[BaskStat.d.tablefont:entities]" color="&[BaskStat.d.table_fg:entities]">
<MvEVAL EXPR = "{l.currentbasket}">
</FONT>
</TD></TR>
</TABLE>
</MvIF>
</TD></TR>
</TABLE>
*</MvIF>
Note: In this code the font size and color is changed from settings in admin