How to add fields to a product

From aMember Pro Documentation
Revision as of 03:32, 9 August 2013 by Caesar (Talk | contribs)

Jump to: navigation, search

Add this code to site.php file:

<?php 
Am_Di::getInstance()->productTable->customFields()->add(new Am_CustomFieldText('field_name', 'Field Title'));

List of available additional field types:

  • Am_CustomFieldHidden
  • Am_CustomFieldText
  • Am_CustomFieldSelect
  • Am_CustomFieldRadio
  • Am_CustomFieldCheckbox