Download Miva Merchant 9 Module API Reference Guide
Transcript
Miva Merchant 9 Module API Reference Guide Product Custom Fields Feature (fields_prod) Modules that implement the Product Custom Fields feature (fields_prod) provide one or more Product custom fields for display in the shopping and administrative interfaces. This feature is activated under Utilities in the Administrative Interface. The fields_prod feature is analogous to the fields_cust feature. The fields_prod feature contains the following functions: • • • • Module_Product_Field_Name Module_Product_Field_Value Module_Product_Fields Module_Product_Set_Field Module_Product_Field_Name 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. Syntax Module_Product_Field_Name ( module var, code ) Parameters module The Module record of the current module code The Custom Product Field code set in Module_Product_Fields Return Value A string showing the field name Module_Product_Field_Value The Admin calls this function 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. Syntax Module_Category_Field_Value ( module var, prod_id, code ) Parameters module The Module record of the current module 65