You would have to create a new custom field type via a system plugin. You would implement the onFieldsLoad trigger to add your type in HikaShop and add the class of your type in a myfieldtype_class.php file next to the main file of the plugin. That class would contain the different functions of a custom field type class: __construct getFieldName trans show display JSCheck check
I invite you to look at the file administrator/components/com_hikashop/classes/field.php for some examples.
class plgHikashopSubuserfield extends JPlugin
{
function __construct(&$subject, $config) {
parent::__construct($subject, $config);
}
function onFieldsLoad(&$fields) {
$me = null;
$me->name = 'myfieldtype';
$me->text = 'My field type';
$me->js = 'allTypes["plg.myfieldtype"] = new array("required","default","columnname");';
$fields[] = $me;
}
}
if(defined('HIKASHOP_COMPONENT')) {
require_once( dirname(__FILE__).DS.'myfieldtype_class.php' );
}