Shipping Calculator
Copyright © 2002, William Weiland
Overview
Calculate shipping charges without having to access the checkout pages. Customers can preview shipping options and costs with a single click if they enter ship to info.
Initial Setup
Use the Merchant admin upload feature to upload the 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.

Click the link for Shipping Calculator to enter the configuration settings.


Configuration Settings
Enter data into the applicable input fields.

Text and Background Characteristics
The labels to the input fields are self explanatory.

Border Options
You can vary the size and color of the calculator border.

Table Width
This determines how wide your calculator will be.

Shipping Option Text
Either enter text or a graphics for the link.

Sort Shipping With
If you have our Sort Shipping or Shipping List module you can use it to arrange the order the shipping methods will appear in this window also. Those modules normally are used to sort the shipping methods during checkout. This module can also use the SuperMod Shipping module to sort the methods in the Shipping Calculator window.

Location
If you are using the OpenUI, you can place the Shipping Calculator either at the top or bottom of the category column or under the nav bar just by changing the settings here in admin. You can also place its location if you are using the Viking Coders template module. If you are using the MMUI look and feel, you will use the code discussed in editing requirements below to determine its placement.


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) Locate the function MMUI_Begin_Screen in the mmui.mv file. Locate the line below that function 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:
<MvDO FILE="{g.Module_Root$'modules/util/shipcalc.mvc'}" NAME="l.currentbasket" VALUE="{ShipCalc_Basket()}">

2) If you want it to show at the bottom of the column, in the same function, just above the last </TABLE> tag, enter the following three lines:
<TR><TD>
<MvDO FILE="{g.Module_Root$'modules/util/shipcalc.mvc'}" NAME="l.currentbasket" VALUE="{ShipCalc_Basket()}">
</TD></TR>