Hi, I would like to ask a simple question
I have set up some custom fields in my product.
In my module, I would like to get that custom fields value.
for example : my custom field name is customfield[27], its field name : Customer Code,
I understand that in the provisioning module, in order to use that parameter, we have to use following format :
$params['customfields']['Field Name'].. below is the list of param that i used to get that custom field value and NONE OF IT WORKS :(
For the moment, the only thing i can do is that taking the value directly from the "tblcustomfieldsvalues" table (either SELECT / UPDATE) but i think i still want to get the value from what WHMCS has set it via the $param..
Anyone please help..
Below is my sample code (jst to view the value in the log) :
I have set up some custom fields in my product.
In my module, I would like to get that custom fields value.
for example : my custom field name is customfield[27], its field name : Customer Code,
I understand that in the provisioning module, in order to use that parameter, we have to use following format :
$params['customfields']['Field Name'].. below is the list of param that i used to get that custom field value and NONE OF IT WORKS :(
PHP Code:
$param['customfields']['customercode'];
$param['customfields'][27];
$param['customfields']['customfield[27]'];
Anyone please help..
Below is my sample code (jst to view the value in the log) :
PHP Code:
function XXX_ChangePackage($params) {
logactivity("value from customfields in product/services-admin : ".$param['customfields']['customercode'].
$param['customfields'][27].$param['customfields']['customfield[27]']);
//ignore below
if ($successful) {
$result = "success";
} else {
$result = "Error Message Goes Here...";
}
return $result;
}