The API information here was origanlly guessed at by putting together various bits of information gathered here and there, and then extrapolating and testing. Additions and corrections were added based on the module API information released by MIVA in a text document during Oct 2005. That is also the document where we got most of the descriptions attributed to MIVA in the "What MIVA says" boxes you will see throughout these pages, with others being from sources like emails MIVA posted to users lists, or in response to support requests, or whatever.
Parameters:
Return Type:none
This is the one function in the API required for every module regardless of what features it has. All other functions are required depending on what feature codes you specify in the "features" member of the structure you build in this function. Here is an example of the function:
<MvFUNCTION NAME="Module_Description" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvASSIGN NAME="l.module:code" VALUE="apitest">
<MvASSIGN NAME="l.module:name" VALUE="API Test Module">
<MvASSIGN NAME="l.module:provider" VALUE="4TheBest eCommerce Solutions">
<MvASSIGN NAME="l.module:version" VALUE="1.0">
<MvASSIGN NAME="l.module:api_ver" VALUE="5.00">
<MvASSIGN NAME="l.module:features" VALUE="feature,codes,go,here">
</MvFUNCTION>
What MIVA Says
MIVA Merchant, Admin and the UI all call this function at several different points.
It provides information that identifies the module, such as the module code and the module name and describes some of its major characteristics, such as the list of features it makes use of. One uses this function to load all this information into a structure with the name "module".
As is frequently the case, one make use of the "var" option on the parameter in order to pass variable values to the calling program by reference. The actual value returned by MvFuncReturn does not contain the main information.
Default Return: NULL
Return Types are expressed in the document by the following codes:
For information and function requirements for the various MIVA Merchant 5 Module API Feature Codes see the following:
batchreport,
component,
component_prov,
currency,
custrt,
data_domain,
data_store,
export,
externalreq,
fields_cust,
fields_prod,
fulfill,
import,
log,
not_fields,
payment,
provision_store,
shipping,
storeselui,
storewizard,
system,
tax,
upload,
util,
wizard,
vis_affil,
vis_affilbe,
vis_category,
vis_categorybe,
vis_cust,
vis_custbe,
vis_domain,
vis_fulfill,
vis_log,
vis_order,
vis_payment,
vis_product,
vis_productbe,
vis_shipping,
vis_store,
vis_system,
vis_util,
vis_wizard
This document is copyright 2005-2006 4TheBest eCommerce Solutions and was last generated using Serade on 01/13/2006 23:04:54. It is permissible to place a copy of this document in it's current or altered form on your website as long as you leave the copyright notice along with the links to the websites referenced intact.