Download Miva Merchant 9 Module API Reference Guide

Transcript
Miva Merchant 9 Module API Reference Guide
code
The custom product field code set in function Module_Product_Fields
value
The new value to be set for the product’s custom field based on the passed code
Return Value
1 on success
0 on error
Multiple Product Custom Fields Feature
(fields_prod_map)
The fields_prod_map feature adds additional functionality to the fields_prod feature to allow
multiple custom fields to be retrieved in a single call to the module. This improves performance
when there are large numbers of custom fields in use.
Note: The module must provide the fields_prod_map feature and report an API version of 5.72.
The fields_prod_map feature contains the following function:
•
Module_Product_Fields_Mapped
Module_Product_Fields_Mapped
This function allows multiple custom fields to be retrieved in a single call to the module. This
improves performance when there are large numbers of custom fields in use. The module should
load the custom fields for the specified product and place the values into output_fields using the
member names specified by field_map.
Supported API Version
5.72 and higher (new in PR8 Update 5)
Syntax
Module_Product_Fields_Mapped ( module var, product_id, field_map var,
output_fields var )
Parameters
module
The Module record of the current module
product_id
The ID of the product for which custom fields are being queried
67