What MIVA Says
Functions in this feature type provide an opportunity for MIVA Merchant stores to offer shipping methods by which the storeowner can ship products to their customers. These methods might be from among the following:
- Global delivery services (USPS, FedEx, etc.)
- Local Delivery service (for grocery deliver sites, etc.)
- Truck shipment
Parameters:
Return Type:string
<MvFUNCTION NAME="ShippingModule_Description" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying the standard batch report.
It returns a textual description of the module.
Default Return: NULL
Parameters:
Return Type:cslist
<MvFUNCTION NAME="ShippingModule_Report_Fields" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying a standard batch report.
It returns a comma separated list of field identifiers for fields displayed in the batch report.
Default Return: NULL (i.e. no fields)
Parameters:
Return Type:string
<MvFUNCTION NAME="ShippingModule_Report_Label" PARAMETERS="module var,field_id" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying a standard batch report.
It returns a string for use as visible text for display beside field identified by field_id
Default Return: NULL
Parameters:
Return Type:string
<MvFUNCTION NAME="ShippingModule_Report_Value" PARAMETERS="module var,field_id,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying a standard batch report.
It returns the value to display in field identified by field_id for method identified in data.
Default Return: NULL
Parameters:
Return Type:acount
The method parameter is expected to be populated with an array of methods. The structure of the array is three fields, code, name, and price. With code being the unique to the module method code that allows it to tell one method from another, and the name being the visible text that appears in the drop down list or wherever the UI renders it, and the price being the price of that method
<MvFUNCTION NAME="ShippingModule_Shipping_Methods" PARAMETERS="module var,methods var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="0">
</MvFUNCTION>
What MIVA Says
The UI calls this function when displaying the OSEL screen, where shipping selection exists.
The purpose of the function is to loads the method structure with information about available shipping methods offered via this module. It must return the number of methods added.
Default Return: NULL
Example 1:
<MvFUNCTION NAME="ShippingModule_Shipping_Methods" PARAMETERS="module var,methods var" STANDARDOUTPUTLEVEL="">
<MvASSIGN NAME="l.methods[1]:code" VALUE="meth1">
<MvASSIGN NAME="l.methods[1]:name" VALUE="Method 1">
<MvASSIGN NAME="l.methods[1]:price" VALUE="1.23">
<MvASSIGN NAME="l.methods[2]:code" VALUE="meth2">
<MvASSIGN NAME="l.methods[2]:name" VALUE="Method 2">
<MvASSIGN NAME="l.methods[2]:price" VALUE="4.56">
<MvFUNCTIONRETURN VALUE="2">
</MvFUNCTION>
Parameters:
Return Type:bool
<MvFUNCTION NAME="ShippingModule_Calculate_Basket" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function when processing a form submission with Action = SHIP.
Its purpose is to insert a SHIPPING basket charge for the shipping method chosen by the shopper, as identified in l.data.
It returns 1 if successful, 0 on error.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="ShippingModule_Order_Validate" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function to validate fields when a user clicks Update on the Edit Order configuration screens.
It returns 1 if all fields are valid, 0 if any field is invalid.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="ShippingModule_Order_Update" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function when one clicks Update on the Edit Order configuration screen.
It The module should return 1 on success, 0 on failure.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="ShippingModule_Order_Delete" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function when one clicks Delete on the Edit Order configuration screen.
One typically uses it to clean up any module-specific records for the order.
It returns a 1 on success, 0 on failure.
Default Return: 1
Parameters:
Return Type:cclist
<MvFUNCTION NAME="ShippingModule_Order_Tabs" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying the Edit Order configuration screen.
It returns a tab list using the following format:
code:text[,code:text,code:text]
Codes must be unique across modules, so it is recommended that the codes somehow include the module code.
Default Return: {toupper(l.module:code) $ ‘:’ $ l.module:name}
Parameters:
Return Type:bool
<MvFUNCTION NAME="ShippingModule_Order_Content" PARAMETERS="module var,tab,load_fields" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin uses this function to determine what to display on the Edit Order configuration screen when the user clicks on the tab identified by l.tab.
Default Return: 1
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.