What MIVA Says
Analogous to the fields_prod feature.
This feature allows an administrator to set up additional db fields for each customer record. One activates the feature (along with custom product fields) under Utilities.
Parameters:
<MvFUNCTION NAME="Module_Customer_Fields" PARAMETERS="module var,fields var" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying the Customer configuration screen.
The Customer Export module also consults this function.
Its purpose is to load the l.fields structure with the name and code for each custom field the module supplies. It must return the number of elements added to l.fields.
l.fields[x]:id = the internal customer id
l.fields[x]:name = the field name visible in the admin tool (as on point and click administration of template)
l.fields[x]:code = the code MIVA Merchant uses to identify the field
Default Return: l.field_count
Parameters:
<MvFUNCTION NAME="Module_Customer_Field_Name" PARAMETERS="module var,code" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
This function returns a string for display as a field name for the field corresponding to l.code.
Default Return: NULL
Parameters:
<MvFUNCTION NAME="Module_Customer_Field_Value" PARAMETERS="module var,cust_id,code" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin calls this function if required to fill in the value of a custom field on the Customer configuration screen.
The purpose of the function is to return the value stored for the field identified by l.code for the customer identified by l.cust_id.
Default Return: NULL
Parameters:
Return Type:bool
<MvFUNCTION NAME="Module_Customer_Set_Field" PARAMETERS="module var,cust_id,code,value" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin relies on this function to instruct it how to update the value, known from the value parameter, of a custom customer field, identified by the code parameter, for a given customer, identified by the cust_id parameter. The value comes from manual input from an administrator, an import etc.
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.