Parameters:
<MvFUNCTION NAME="Module_Product_Fields" PARAMETERS="module var,fields var" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying the Product configuration screen.
Admin calls this function when displaying the Edit Page: Product Display configuration screen.
Product import and export modules also consult this function.
When one views the point and click administration of the Product Display Layout, the field(s) created by the module will be available to select for display.
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 product 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_Product_Field_Name" PARAMETERS="module var,code" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
The UI calls this function when displaying a custom product field on the product screen (PROD) or product list screen (PLIST).
It returns a string for display as a field name for the field corresponding to l.code.
Default Return: NULL
Parameters:
<MvFUNCTION NAME="Module_Product_Field_Value" PARAMETERS="module var,prod_id,code" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin may call this function if required to display the value of a custom field on the Product configuration screen.
The UI calls this function when displaying a custom product field on the product page.
It returns a string for display as a field value for the field corresponding to l.code.
Default Return: NULL
Parameters:
Return Type:bool
<MvFUNCTION NAME="Module_Product_Set_Field" PARAMETERS="module var,prod_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 product field, identified by the code parameter, for a given product, identified by the prod_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.